chore(eslint): update max-len rule to limit code length to 120 characters

chore(eslint): update quotes rule to enforce the use of single quotes
This commit is contained in:
Danny Avila 2023-07-06 11:41:08 -04:00 committed by Danny Avila
parent 684ffd8e66
commit b6f21af69b

View file

@ -10,7 +10,7 @@ module.exports = {
'eslint:recommended', 'eslint:recommended',
'plugin:react/recommended', 'plugin:react/recommended',
'plugin:react-hooks/recommended', 'plugin:react-hooks/recommended',
"plugin:jest/recommended", 'plugin:jest/recommended',
'prettier' 'prettier'
], ],
parser: '@typescript-eslint/parser', parser: '@typescript-eslint/parser',
@ -29,7 +29,7 @@ module.exports = {
'max-len': [ 'max-len': [
'error', 'error',
{ {
code: 150, code: 120,
ignoreStrings: true, ignoreStrings: true,
ignoreTemplateLiterals: true, ignoreTemplateLiterals: true,
ignoreComments: true ignoreComments: true
@ -47,7 +47,8 @@ module.exports = {
'no-continue': 'off', 'no-continue': 'off',
'no-restricted-syntax': 'off', 'no-restricted-syntax': 'off',
'react/prop-types': ['off'], 'react/prop-types': ['off'],
'react/display-name': ['off'] 'react/display-name': ['off'],
'quotes': ['error', 'single'],
}, },
overrides: [ overrides: [
{ {
@ -102,10 +103,10 @@ module.exports = {
files: './packages/data-provider/**/*.ts', files: './packages/data-provider/**/*.ts',
overrides: [ overrides: [
{ {
files: "**/*.ts", files: '**/*.ts',
parser: "@typescript-eslint/parser", parser: '@typescript-eslint/parser',
parserOptions: { parserOptions: {
project: "./packages/data-provider/tsconfig.json" project: './packages/data-provider/tsconfig.json'
} }
} }
] ]