XeNote/.eslintrc.cjs

51 lines
992 B
JavaScript

module.exports = {
env: {
browser: true,
es2021: true
},
extends: [
'eslint:recommended',
'standard-with-typescript',
'plugin:@typescript-eslint/recommended',
'plugin:react/recommended'
],
overrides: [
{
env: {
node: true
},
files: [
'.eslintrc.{js,cjs}'
],
parserOptions: {
sourceType: 'script'
}
}
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
project: [
'./tsconfig.json'
]
},
plugins: [
'react',
'@typescript-eslint'
],
rules: {
'InferGetStaticPropsType': 'warn',
'space-before-function-paren': 'off',
'@typescript-eslint/space-before-function-paren': 'off',
'@typescript-eslint/strict-boolean-expressions': [
2,
{
allowString: false,
allowNumber: false
}
]
},
ignorePatterns: ['src/**/*.test.ts', 'src/frontend/generated/*']
}