1
0
Fork 0
mirror of https://github.com/Eggbertx/gochan.git synced 2025-08-06 05:26:22 -07:00
gochan/frontend/.eslintrc.cjs
2023-05-13 23:46:41 -07:00

53 lines
1.3 KiB
JavaScript

module.exports = {
"parser": "@typescript-eslint/parser",
"env": {
"browser": true,
"jest": true,
"node": true,
"es6": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
],
"ignorePatterns": ["**/legacy/**"],
"parserOptions": {
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": true
},
"sourceType": "module"
},
"plugins": [
"@typescript-eslint"
],
"rules": {
"indent": ["error", "tab"],
"linebreak-style": ["error", "unix"],
"quotes": ["error", "double", {
"allowTemplateLiterals": true
}],
"semi": ["error", "always"],
"no-var": ["error"],
"brace-style": ["error"],
"array-bracket-spacing": ["error", "never"],
"block-spacing": ["error", "always"],
"no-spaced-func": ["error"],
"no-whitespace-before-property": ["error"],
"space-before-blocks": ["error", "always"],
"keyword-spacing": ["error", {
"overrides": {
"if": {"after": false},
"for": {"after": false},
"catch": {"after": false},
"switch": {"after": false},
"while": {"after": false}
}
}],
"no-constant-condition": ["off"],
"@typescript-eslint/no-explicit-any": ["off"],
"@typescript-eslint/no-unused-vars": ["warn", {
"argsIgnorePattern": "^_"
}],
}
};