forked from weirdgloop/osrs-dps-calc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.cjs
31 lines (31 loc) · 1.34 KB
/
.eslintrc.cjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
module.exports = {
extends: ['airbnb', 'airbnb/hooks', 'airbnb-typescript', 'eslint:recommended', 'plugin:@typescript-eslint/recommended', 'next'],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
root: true,
ignorePatterns: ['**/tests/__mocks__/**/*'],
rules: {
'@next/next/no-img-element': 'off',
'react/require-default-props': 'off',
'max-len': 'off',
'react/function-component-definition': ['error', {'namedComponents': 'arrow-function'}],
'radix': ['error', 'as-needed'],
'no-underscore-dangle': 'off',
'import/no-extraneous-dependencies': ['error', {'devDependencies': true}],
'no-restricted-syntax': 'off',
'no-param-reassign': 'off',
'prefer-destructuring': ['error', {'AssignmentExpression': {'array': false, 'object': false}}],
'no-mixed-operators': 'off',
'max-classes-per-file': ['error', 3],
'no-bitwise': 'off',
'no-plusplus': ['error', {'allowForLoopAfterthoughts': true}],
'no-continue': 'off',
'react/jsx-props-no-spreading': ['error', {'custom': 'ignore'}],
'import/no-named-as-default': 'off',
'react/no-unstable-nested-components': ['error', {'allowAsProps': true}],
'no-console': 'off'
},
parserOptions: {
project: './tsconfig.json'
}
};