40 lines
899 B
JavaScript
40 lines
899 B
JavaScript
module.exports = {
|
|
extends: [
|
|
"plugin:@typescript-eslint/recommended",
|
|
"airbnb-typescript",
|
|
"next",
|
|
"next/core-web-vitals",
|
|
],
|
|
parser: '@typescript-eslint/parser',
|
|
parserOptions: {
|
|
tsconfigRootDir: __dirname,
|
|
project: './tsconfig.json',
|
|
},
|
|
plugins: ['@typescript-eslint'],
|
|
overrides: [
|
|
{
|
|
files: ['*.js'],
|
|
rules: {
|
|
'@typescript-eslint/no-var-requires': 'off',
|
|
},
|
|
},
|
|
],
|
|
rules: {
|
|
"max-len": [
|
|
"warn",
|
|
240
|
|
],
|
|
"@typescript-eslint/quotes": [
|
|
"error",
|
|
"double"
|
|
],
|
|
"react/jsx-one-expression-per-line": "off",
|
|
// Temp
|
|
"react/no-array-index-key": "warn",
|
|
"jsx-a11y/label-has-associated-control": "off",
|
|
"jsx-a11y/click-events-have-key-events": "off",
|
|
"jsx-a11y/no-noninteractive-element-interactions": "off",
|
|
"jsx-a11y/no-static-element-interactions": "off",
|
|
}
|
|
}
|