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 lib/templates/rails/assets/javascript.js
postcss.config.js postcss.config.js
setupTests.js setupTests.js
.eslintrc.js
# old es files # old es files
app/javascript/legacy/bank_accounts/confirm/index.es6 app/javascript/legacy/bank_accounts/confirm/index.es6

View file

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