kopia lustrzana https://github.com/cloudflare/wildebeest
38 wiersze
1.1 KiB
JavaScript
38 wiersze
1.1 KiB
JavaScript
module.exports = {
|
|
root: true,
|
|
env: {
|
|
browser: true,
|
|
es2021: true,
|
|
node: true,
|
|
},
|
|
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'plugin:qwik/recommended'],
|
|
parser: '@typescript-eslint/parser',
|
|
parserOptions: {
|
|
tsconfigRootDir: __dirname,
|
|
project: ['./tsconfig.json'],
|
|
ecmaVersion: 2021,
|
|
sourceType: 'module',
|
|
ecmaFeatures: {
|
|
jsx: true,
|
|
},
|
|
},
|
|
plugins: ['@typescript-eslint'],
|
|
rules: {
|
|
'@typescript-eslint/no-explicit-any': 'error',
|
|
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
|
'@typescript-eslint/no-inferrable-types': 'error',
|
|
'@typescript-eslint/no-non-null-assertion': 'error',
|
|
'@typescript-eslint/no-empty-interface': 'error',
|
|
'@typescript-eslint/no-namespace': 'error',
|
|
'@typescript-eslint/no-empty-function': 'error',
|
|
'@typescript-eslint/no-this-alias': 'error',
|
|
'@typescript-eslint/ban-types': 'error',
|
|
'@typescript-eslint/ban-ts-comment': 'error',
|
|
'prefer-spread': 'error',
|
|
'no-case-declarations': 'error',
|
|
'no-console': ['error', { allow: ['warn', 'error']} ],
|
|
'@typescript-eslint/no-unused-vars': ['error'],
|
|
'prefer-const': 'error',
|
|
},
|
|
}
|