51 lines
1.6 KiB
JavaScript
51 lines
1.6 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': 'off',
|
|
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
|
'@typescript-eslint/no-inferrable-types': 'off',
|
|
'@typescript-eslint/no-non-null-assertion': 'off',
|
|
'@typescript-eslint/no-empty-interface': 'off',
|
|
'@typescript-eslint/no-namespace': 'off',
|
|
'@typescript-eslint/no-empty-function': 'off',
|
|
'@typescript-eslint/no-this-alias': 'off',
|
|
'@typescript-eslint/ban-types': 'off',
|
|
'@typescript-eslint/ban-ts-comment': 'off',
|
|
'prefer-spread': 'off',
|
|
'no-case-declarations': 'off',
|
|
'no-console': 'off',
|
|
'@typescript-eslint/no-unused-vars': ['error'],
|
|
'indent': ['error', 2],
|
|
'quotes': ['error', 'single'],
|
|
'semi': ['error', 'always'],
|
|
'comma-dangle': ['error', 'always-multiline'],
|
|
'no-trailing-spaces': ['error'],
|
|
'no-multiple-empty-lines': ['error', { max: 1 }],
|
|
'block-spacing': ['error', 'always'],
|
|
'object-curly-spacing': ['error', 'always'],
|
|
'array-bracket-spacing': ['error', 'never'],
|
|
'key-spacing': ['error', { beforeColon: false, afterColon: true }],
|
|
'keyword-spacing': ['error', { before: true, after: true }],
|
|
},
|
|
};
|