|
| 1 | +{ |
| 2 | + // JS Files |
| 3 | + "root": true, |
| 4 | + "env": { |
| 5 | + "atomtest": true, |
| 6 | + "es6": true, |
| 7 | + "node": true, |
| 8 | + "browser": true |
| 9 | + }, |
| 10 | + "globals": { "atom": "writable" }, |
| 11 | + "parser": "babel-eslint", |
| 12 | + "parserOptions": { |
| 13 | + "ecmaFeatures": { "jsx": true }, |
| 14 | + "ecmaVersion": 2018, |
| 15 | + "sourceType": "module" |
| 16 | + }, |
| 17 | + "plugins": ["only-warn"], |
| 18 | + "extends": ["eslint:recommended"], |
| 19 | + "overrides": [ |
| 20 | + { |
| 21 | + // TypeScript files |
| 22 | + "files": ["**/*.ts", "**/*.tsx"], |
| 23 | + "env": { |
| 24 | + "atomtest": true, |
| 25 | + "es6": true, |
| 26 | + "node": true, |
| 27 | + "browser": true |
| 28 | + }, |
| 29 | + "globals": { "atom": "writable" }, |
| 30 | + "parser": "@typescript-eslint/parser", |
| 31 | + "parserOptions": { |
| 32 | + "ecmaFeatures": { "jsx": true }, |
| 33 | + "ecmaVersion": 2018, |
| 34 | + "sourceType": "module" |
| 35 | + }, |
| 36 | + "plugins": ['@typescript-eslint', "only-warn"], |
| 37 | + "extends": [ |
| 38 | + "eslint:recommended", |
| 39 | + "plugin:@typescript-eslint/eslint-recommended", |
| 40 | + "plugin:@typescript-eslint/recommended" |
| 41 | + ], |
| 42 | + "rules": { |
| 43 | + "@typescript-eslint/explicit-function-return-type": "off", |
| 44 | + "@typescript-eslint/camelcase": "off", |
| 45 | + "@typescript-eslint/no-use-before-define": "off", |
| 46 | + "@typescript-eslint/member-delimiter-style": "off" |
| 47 | + } |
| 48 | + }, |
| 49 | + { |
| 50 | + // CoffeeScript files |
| 51 | + "files": ["**/*.coffee"], |
| 52 | + "env": { |
| 53 | + "atomtest": true, |
| 54 | + "es6": true, |
| 55 | + "node": true, |
| 56 | + "browser": true |
| 57 | + }, |
| 58 | + "globals": { "atom": "writable" }, |
| 59 | + // "parser": "eslint-plugin-coffee", |
| 60 | + "parser": "eslint-plugin-coffee", |
| 61 | + "parserOptions": { |
| 62 | + "ecmaFeatures": { "jsx": true }, |
| 63 | + "ecmaVersion": 2018, |
| 64 | + "sourceType": "module" |
| 65 | + }, |
| 66 | + "plugins": ["coffee", "only-warn"], |
| 67 | + "extends": ["plugin:coffee/eslint-recommended"] |
| 68 | + } |
| 69 | + ] |
| 70 | +} |
0 commit comments