lint .eslintrc.js

This commit is contained in:
Eric 2020-06-26 19:47:37 -05:00 committed by Eric Schultz
parent 93f24f7e6d
commit 965c6dc23a
2 changed files with 20 additions and 21 deletions

View file

@ -332,7 +332,6 @@ config/webpack/test.js
lib/templates/rails/assets/javascript.js
postcss.config.js
setupTests.js
.eslintrc.js
# old es files
app/javascript/legacy/bank_accounts/confirm/index.es6

View file

@ -16,23 +16,23 @@ module.exports = {
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
]
},
{
"files": ['**/*.spec.ts'],
parser: '@typescript-eslint/parser',
plugins: [
'@typescript-eslint',
'jest'
],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:jest/all'
],
rules:{
"jest/lowercase-name": ["error", { "ignore": ["describe"]}]
}
}
},
{
"files": ['**/*.spec.ts'],
parser: '@typescript-eslint/parser',
plugins: [
'@typescript-eslint',
'jest'
],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:jest/all'
],
rules:{
"jest/lowercase-name": ["error", { "ignore": ["describe"]}]
}
}
],
"rules": {
"linebreak-style": [
@ -42,8 +42,8 @@ module.exports = {
"semi": [
"error",
"always"
],
"no-trailing-spaces": ["error"],
"indent": ["error", "tab"], // we use tabs for accessibility
],
"no-trailing-spaces": ["error"],
"indent": ["error", "tab"], // we use tabs for accessibility
}
};