forked from SaitoTech/saito-lite-rust
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
29 lines (28 loc) · 1.05 KB
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
module.exports = {
env: {
browser: true,
es2021: true,
node: true,
jquery: true
},
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 13,
sourceType: 'module'
},
plugins: ['@typescript-eslint'],
rules: {
// Basic code style rules
indent: ['error', 'space'],
'linebreak-style': ['error', 'unix'], // Use Unix line endings
quotes: ['error', 'single', { allowTemplateLiterals: true }], // Use single quotes for strings
semi: ['error', 'always'] // Require semicolons at the end of statements
// '@typescript-eslint/no-unused-vars': 'off', // Turn off unused variable warnings
// '@typescript-eslint/no-empty-function': 'off', // Allow empty functions
// '@typescript-eslint/no-var-requires': 'off', // Allow 'require' statements
// '@typescript-eslint/no-this-alias': 'off', // Allow using 'this' alias
// 'no-fallthrough': 'off', // Allow fallthrough in switch statements
// 'no-prototype-builtins': 'off', // Allow prototype built-ins
// 'no-cond-assign': 'off' // Allow assignment in conditional expressions
}
};