Archived
0
0
Fork 0
This repository has been archived on 2024-02-06. You can view files and clone it, but cannot push or open issues or pull requests.
wahpkg/.eslintrc.cjs

68 lines
1.3 KiB
JavaScript
Raw Normal View History

2022-08-27 06:35:11 +00:00
require('@rushstack/eslint-patch/modern-module-resolution');
module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
sourceType: 'module',
tsconfigRootDir: __dirname,
},
plugins: ['@typescript-eslint/eslint-plugin'],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
],
root: true,
env: {
node: true,
es2022: true,
},
rules: {
'@typescript-eslint/interface-name-prefix': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-explicit-any': 'off',
indent: ['error', 'tab', { 'SwitchCase': 1 }],
2022-08-27 06:35:11 +00:00
'linebreak-style': [
'error',
'unix',
],
quotes: [
'error',
'single',
],
semi: [
'error',
'always',
],
'eol-last': [
'error',
'always',
],
'object-curly-spacing': [
'error',
'always',
],
'default-case': 'error',
'comma-dangle': [
'error',
'always-multiline',
],
'no-case-declarations': 'off',
camelcase: 'off',
'keyword-spacing': 'error',
'spaced-comment': [
'error',
'always',
],
'no-var': 'error',
eqeqeq: 'error',
'no-eq-null': 'error',
'arrow-parens': [
'error',
'always',
],
'no-tabs': 'off',
'space-before-function-paren': 'off',
},
};