Skyler Grey | aa50824 | 2022-08-03 21:42:12 +0100 | [diff] [blame] | 1 | { |
| 2 | "env": { |
| 3 | "browser": false, |
pineafan | 63fc5e2 | 2022-08-04 22:04:10 +0100 | [diff] [blame] | 4 | "es2020": true, |
| 5 | "node": true |
Skyler Grey | aa50824 | 2022-08-03 21:42:12 +0100 | [diff] [blame] | 6 | }, |
| 7 | "ignorePatterns": ["dist/"], |
| 8 | "extends": [ |
| 9 | "eslint:recommended", |
Skyler Grey | 4ec845c | 2022-08-06 10:21:50 +0100 | [diff] [blame^] | 10 | "plugin:@typescript-eslint/strict", |
| 11 | "prettier" |
Skyler Grey | aa50824 | 2022-08-03 21:42:12 +0100 | [diff] [blame] | 12 | ], |
| 13 | "parser": "@typescript-eslint/parser", |
| 14 | "parserOptions": { |
| 15 | "ecmaVersion": "latest", |
Skyler Grey | 4ec845c | 2022-08-06 10:21:50 +0100 | [diff] [blame^] | 16 | "sourceType": "module", |
| 17 | "project": "./tsconfig.json" |
Skyler Grey | aa50824 | 2022-08-03 21:42:12 +0100 | [diff] [blame] | 18 | }, |
Skyler Grey | 4ec845c | 2022-08-06 10:21:50 +0100 | [diff] [blame^] | 19 | "plugins": ["@typescript-eslint"], |
Skyler Grey | aa50824 | 2022-08-03 21:42:12 +0100 | [diff] [blame] | 20 | "rules": { |
Skyler Grey | 4ec845c | 2022-08-06 10:21:50 +0100 | [diff] [blame^] | 21 | "indent": ["error", 4], |
| 22 | "linebreak-style": ["error", "unix"], |
| 23 | "quotes": ["error", "double"], |
| 24 | "semi": ["error", "always"], |
Skyler Grey | aa50824 | 2022-08-03 21:42:12 +0100 | [diff] [blame] | 25 | "no-unused-vars": "off", |
| 26 | "@typescript-eslint/no-unused-vars": [ |
| 27 | "warn", |
| 28 | { |
| 29 | "argsIgnorePattern": "^_", |
| 30 | "varsIgnorePattern": "^_", |
| 31 | "caughtErrorsIgnorePattern": "^_" |
| 32 | } |
| 33 | ], |
| 34 | "no-trailing-spaces": "error", |
pineafan | 63fc5e2 | 2022-08-04 22:04:10 +0100 | [diff] [blame] | 35 | "@typescript-eslint/no-explicit-any": "error", |
Skyler Grey | 4ec845c | 2022-08-06 10:21:50 +0100 | [diff] [blame^] | 36 | "comma-dangle": ["error", "never"] |
Skyler Grey | aa50824 | 2022-08-03 21:42:12 +0100 | [diff] [blame] | 37 | } |
| 38 | } |