@taskade/eslint-plugin
Advanced tools
+11
-0
@@ -6,2 +6,13 @@ # Change Log | ||
| # [0.4.0](https://github.com/taskade/eslint/compare/v0.3.1...v0.4.0) (2023-12-23) | ||
| ### Features | ||
| * **deps:** Upgrade TypeScript to v5.3, Prettier to v3, Lerna to v8 and bump env to ES2020 ([#21](https://github.com/taskade/eslint/issues/21)) ([eda981a](https://github.com/taskade/eslint/commit/eda981a88b25383d87f561496e60cd72363a6dba)) | ||
| ## [0.3.1](https://github.com/taskade/eslint/compare/v0.3.0...v0.3.1) (2023-02-04) | ||
@@ -8,0 +19,0 @@ |
| declare const _default: { | ||
| env: { | ||
| es2020: true; | ||
| }; | ||
| extends: string[]; | ||
| parser: string; | ||
| parserOptions: { | ||
| ecmaVersion: number; | ||
| sourceType: string; | ||
| ecmaVersion: 2020; | ||
| sourceType: "module"; | ||
| useJSXTextNode: boolean; | ||
@@ -12,7 +15,7 @@ }; | ||
| rules: { | ||
| 'react/prop-types': string; | ||
| 'react/prop-types': "off"; | ||
| }; | ||
| }[]; | ||
| rules: { | ||
| 'prettier/prettier': (string | { | ||
| 'prettier/prettier': ["warn", { | ||
| printWidth: number; | ||
@@ -26,3 +29,3 @@ tabWidth: number; | ||
| bracketSameLine: boolean; | ||
| })[]; | ||
| }]; | ||
| }; | ||
@@ -29,0 +32,0 @@ settings: { |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../src/configs/base.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBA2CE"} | ||
| {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../src/configs/base.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,wBAgD8B"} |
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.default = { | ||
| env: { | ||
| es2020: true, | ||
| }, | ||
| extends: [ | ||
@@ -9,2 +12,3 @@ 'eslint:recommended', | ||
| 'plugin:react-hooks/recommended', | ||
| // Turns off all rules that are unnecessary or might conflict with Prettier. | ||
| 'plugin:prettier/recommended', | ||
@@ -15,3 +19,4 @@ 'plugin:@taskade/recommended', | ||
| parserOptions: { | ||
| ecmaVersion: 2018, | ||
| // https://node.green/#ES2020 | ||
| ecmaVersion: 2020, | ||
| sourceType: 'module', | ||
@@ -18,0 +23,0 @@ useJSXTextNode: true, |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"base.js","sourceRoot":"","sources":["../../src/configs/base.ts"],"names":[],"mappings":";;AAAA,kBAAe;IACb,OAAO,EAAE;QACP,oBAAoB;QACpB,uCAAuC;QACvC,0BAA0B;QAC1B,gCAAgC;QAChC,6BAA6B;QAC7B,6BAA6B;KAC9B;IACD,MAAM,EAAE,2BAA2B;IACnC,aAAa,EAAE;QACb,WAAW,EAAE,IAAI;QACjB,UAAU,EAAE,QAAQ;QACpB,cAAc,EAAE,IAAI;KACrB;IACD,SAAS,EAAE;QACT;YACE,KAAK,EAAE,CAAC,UAAU,CAAC;YACnB,KAAK,EAAE;gBACL,kBAAkB,EAAE,KAAK;aAC1B;SACF;KACF;IACD,KAAK,EAAE;QACL,mBAAmB,EAAE;YACnB,MAAM;YACN;gBACE,UAAU,EAAE,GAAG;gBACf,QAAQ,EAAE,CAAC;gBACX,OAAO,EAAE,KAAK;gBACd,IAAI,EAAE,IAAI;gBACV,WAAW,EAAE,IAAI;gBACjB,aAAa,EAAE,KAAK;gBACpB,cAAc,EAAE,IAAI;gBACpB,eAAe,EAAE,KAAK;aACvB;SACF;KACF;IACD,QAAQ,EAAE;QACR,KAAK,EAAE;YACL,OAAO,EAAE,QAAQ;SAClB;KACF;CACF,CAAC"} | ||
| {"version":3,"file":"base.js","sourceRoot":"","sources":["../../src/configs/base.ts"],"names":[],"mappings":";;AAEA,kBAAe;IACb,GAAG,EAAE;QACH,MAAM,EAAE,IAAI;KACb;IACD,OAAO,EAAE;QACP,oBAAoB;QACpB,uCAAuC;QACvC,0BAA0B;QAC1B,gCAAgC;QAChC,4EAA4E;QAC5E,6BAA6B;QAC7B,6BAA6B;KAC9B;IACD,MAAM,EAAE,2BAA2B;IACnC,aAAa,EAAE;QACb,6BAA6B;QAC7B,WAAW,EAAE,IAAI;QACjB,UAAU,EAAE,QAAQ;QACpB,cAAc,EAAE,IAAI;KACrB;IACD,SAAS,EAAE;QACT;YACE,KAAK,EAAE,CAAC,UAAU,CAAC;YACnB,KAAK,EAAE;gBACL,kBAAkB,EAAE,KAAK;aAC1B;SACF;KACF;IACD,KAAK,EAAE;QACL,mBAAmB,EAAE;YACnB,MAAM;YACN;gBACE,UAAU,EAAE,GAAG;gBACf,QAAQ,EAAE,CAAC;gBACX,OAAO,EAAE,KAAK;gBACd,IAAI,EAAE,IAAI;gBACV,WAAW,EAAE,IAAI;gBACjB,aAAa,EAAE,KAAK;gBACpB,cAAc,EAAE,IAAI;gBACpB,eAAe,EAAE,KAAK;aACvB;SACF;KACF;IACD,QAAQ,EAAE;QACR,KAAK,EAAE;YACL,OAAO,EAAE,QAAQ;SAClB;KACF;CAC0B,CAAC"} |
| declare const _default: { | ||
| env: { | ||
| es6: boolean; | ||
| }; | ||
| plugins: string[]; | ||
@@ -9,32 +6,32 @@ overrides: { | ||
| rules: { | ||
| '@typescript-eslint/explicit-function-return-type': string; | ||
| '@typescript-eslint/explicit-module-boundary-types': string; | ||
| '@typescript-eslint/explicit-function-return-type': "off"; | ||
| '@typescript-eslint/explicit-module-boundary-types': "off"; | ||
| }; | ||
| }[]; | ||
| rules: { | ||
| 'brace-style': string; | ||
| '@typescript-eslint/brace-style': (string | { | ||
| 'brace-style': "off"; | ||
| '@typescript-eslint/brace-style': ["error", string, { | ||
| allowSingleLine: boolean; | ||
| })[]; | ||
| '@typescript-eslint/camelcase': string; | ||
| '@typescript-eslint/explicit-function-return-type': string; | ||
| '@typescript-eslint/explicit-module-boundary-types': string; | ||
| 'no-dupe-class-members': string; | ||
| '@typescript-eslint/no-dupe-class-members': string[]; | ||
| '@typescript-eslint/no-empty-function': string; | ||
| 'no-shadow': string; | ||
| '@typescript-eslint/no-shadow': string; | ||
| curly: string[]; | ||
| eqeqeq: (string | { | ||
| }]; | ||
| '@typescript-eslint/camelcase': "off"; | ||
| '@typescript-eslint/explicit-function-return-type': "off"; | ||
| '@typescript-eslint/explicit-module-boundary-types': "off"; | ||
| 'no-dupe-class-members': "off"; | ||
| '@typescript-eslint/no-dupe-class-members': ["error"]; | ||
| '@typescript-eslint/no-empty-function': "off"; | ||
| 'no-shadow': "off"; | ||
| '@typescript-eslint/no-shadow': "warn"; | ||
| curly: ["error", string]; | ||
| eqeqeq: ["error", string, { | ||
| null: string; | ||
| })[]; | ||
| 'no-implicit-coercion': string; | ||
| 'no-param-reassign': (string | { | ||
| }]; | ||
| 'no-implicit-coercion': "error"; | ||
| 'no-param-reassign': ["error", { | ||
| props: boolean; | ||
| ignorePropertyModificationsForRegex: string[]; | ||
| })[]; | ||
| 'sort-imports': string; | ||
| 'import/order': string; | ||
| 'simple-import-sort/exports': string; | ||
| 'simple-import-sort/imports': string; | ||
| }]; | ||
| 'sort-imports': "off"; | ||
| 'import/order': "off"; | ||
| 'simple-import-sort/exports': "warn"; | ||
| 'simple-import-sort/imports': "warn"; | ||
| }; | ||
@@ -41,0 +38,0 @@ }; |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"recommended.d.ts","sourceRoot":"","sources":["../../src/configs/recommended.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBA0CE"} | ||
| {"version":3,"file":"recommended.d.ts","sourceRoot":"","sources":["../../src/configs/recommended.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,wBAuC8B"} |
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.default = { | ||
| env: { | ||
| es6: true, | ||
| }, | ||
| plugins: ['@typescript-eslint', 'simple-import-sort'], | ||
@@ -20,3 +17,3 @@ overrides: [ | ||
| '@typescript-eslint/brace-style': ['error', '1tbs', { allowSingleLine: false }], | ||
| '@typescript-eslint/camelcase': 'off', | ||
| '@typescript-eslint/camelcase': 'off', // NOTE: (stan@taskade.com) This rule is deprecated. | ||
| '@typescript-eslint/explicit-function-return-type': 'off', | ||
@@ -23,0 +20,0 @@ '@typescript-eslint/explicit-module-boundary-types': 'off', |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"recommended.js","sourceRoot":"","sources":["../../src/configs/recommended.ts"],"names":[],"mappings":";;AAAA,kBAAe;IACb,GAAG,EAAE;QACH,GAAG,EAAE,IAAI;KACV;IACD,OAAO,EAAE,CAAC,oBAAoB,EAAE,oBAAoB,CAAC;IACrD,SAAS,EAAE;QACT;YACE,KAAK,EAAE,CAAC,SAAS,EAAE,UAAU,CAAC;YAC9B,KAAK,EAAE;gBACL,kDAAkD,EAAE,KAAK;gBACzD,mDAAmD,EAAE,KAAK;aAC3D;SACF;KACF;IACD,KAAK,EAAE;QACL,aAAa,EAAE,KAAK;QACpB,gCAAgC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,eAAe,EAAE,KAAK,EAAE,CAAC;QAC/E,8BAA8B,EAAE,KAAK;QACrC,kDAAkD,EAAE,KAAK;QACzD,mDAAmD,EAAE,KAAK;QAC1D,uBAAuB,EAAE,KAAK;QAC9B,0CAA0C,EAAE,CAAC,OAAO,CAAC;QACrD,sCAAsC,EAAE,KAAK;QAC7C,WAAW,EAAE,KAAK;QAClB,8BAA8B,EAAE,MAAM;QACtC,4GAA4G;QAC5G,4DAA4D;QAC5D,KAAK,EAAE,CAAC,OAAO,EAAE,KAAK,CAAC;QACvB,MAAM,EAAE,CAAC,OAAO,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;QAC9C,sBAAsB,EAAE,OAAO;QAC/B,mBAAmB,EAAE;YACnB,OAAO;YACP;gBACE,KAAK,EAAE,IAAI;gBACX,mCAAmC,EAAE,CAAC,QAAQ,CAAC;aAChD;SACF;QACD,cAAc,EAAE,KAAK;QACrB,cAAc,EAAE,KAAK;QACrB,4BAA4B,EAAE,MAAM;QACpC,4BAA4B,EAAE,MAAM;KACrC;CACF,CAAC"} | ||
| {"version":3,"file":"recommended.js","sourceRoot":"","sources":["../../src/configs/recommended.ts"],"names":[],"mappings":";;AAEA,kBAAe;IACb,OAAO,EAAE,CAAC,oBAAoB,EAAE,oBAAoB,CAAC;IACrD,SAAS,EAAE;QACT;YACE,KAAK,EAAE,CAAC,SAAS,EAAE,UAAU,CAAC;YAC9B,KAAK,EAAE;gBACL,kDAAkD,EAAE,KAAK;gBACzD,mDAAmD,EAAE,KAAK;aAC3D;SACF;KACF;IACD,KAAK,EAAE;QACL,aAAa,EAAE,KAAK;QACpB,gCAAgC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,eAAe,EAAE,KAAK,EAAE,CAAC;QAC/E,8BAA8B,EAAE,KAAK,EAAE,oDAAoD;QAC3F,kDAAkD,EAAE,KAAK;QACzD,mDAAmD,EAAE,KAAK;QAC1D,uBAAuB,EAAE,KAAK;QAC9B,0CAA0C,EAAE,CAAC,OAAO,CAAC;QACrD,sCAAsC,EAAE,KAAK;QAC7C,WAAW,EAAE,KAAK;QAClB,8BAA8B,EAAE,MAAM;QACtC,4GAA4G;QAC5G,4DAA4D;QAC5D,KAAK,EAAE,CAAC,OAAO,EAAE,KAAK,CAAC;QACvB,MAAM,EAAE,CAAC,OAAO,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;QAC9C,sBAAsB,EAAE,OAAO;QAC/B,mBAAmB,EAAE;YACnB,OAAO;YACP;gBACE,KAAK,EAAE,IAAI;gBACX,mCAAmC,EAAE,CAAC,QAAQ,CAAC;aAChD;SACF;QACD,cAAc,EAAE,KAAK;QACrB,cAAc,EAAE,KAAK;QACrB,4BAA4B,EAAE,MAAM;QACpC,4BAA4B,EAAE,MAAM;KACrC;CAC0B,CAAC"} |
+31
-31
| declare const _default: { | ||
| configs: { | ||
| base: { | ||
| env: { | ||
| es2020: true; | ||
| }; | ||
| extends: string[]; | ||
| parser: string; | ||
| parserOptions: { | ||
| ecmaVersion: number; | ||
| sourceType: string; | ||
| ecmaVersion: 2020; | ||
| sourceType: "module"; | ||
| useJSXTextNode: boolean; | ||
@@ -14,7 +17,7 @@ }; | ||
| rules: { | ||
| 'react/prop-types': string; | ||
| 'react/prop-types': "off"; | ||
| }; | ||
| }[]; | ||
| rules: { | ||
| 'prettier/prettier': (string | { | ||
| 'prettier/prettier': ["warn", { | ||
| printWidth: number; | ||
@@ -28,3 +31,3 @@ tabWidth: number; | ||
| bracketSameLine: boolean; | ||
| })[]; | ||
| }]; | ||
| }; | ||
@@ -38,5 +41,2 @@ settings: { | ||
| recommended: { | ||
| env: { | ||
| es6: boolean; | ||
| }; | ||
| plugins: string[]; | ||
@@ -46,32 +46,32 @@ overrides: { | ||
| rules: { | ||
| '@typescript-eslint/explicit-function-return-type': string; | ||
| '@typescript-eslint/explicit-module-boundary-types': string; | ||
| '@typescript-eslint/explicit-function-return-type': "off"; | ||
| '@typescript-eslint/explicit-module-boundary-types': "off"; | ||
| }; | ||
| }[]; | ||
| rules: { | ||
| 'brace-style': string; | ||
| '@typescript-eslint/brace-style': (string | { | ||
| 'brace-style': "off"; | ||
| '@typescript-eslint/brace-style': ["error", string, { | ||
| allowSingleLine: boolean; | ||
| })[]; | ||
| '@typescript-eslint/camelcase': string; | ||
| '@typescript-eslint/explicit-function-return-type': string; | ||
| '@typescript-eslint/explicit-module-boundary-types': string; | ||
| 'no-dupe-class-members': string; | ||
| '@typescript-eslint/no-dupe-class-members': string[]; | ||
| '@typescript-eslint/no-empty-function': string; | ||
| 'no-shadow': string; | ||
| '@typescript-eslint/no-shadow': string; | ||
| curly: string[]; | ||
| eqeqeq: (string | { | ||
| }]; | ||
| '@typescript-eslint/camelcase': "off"; | ||
| '@typescript-eslint/explicit-function-return-type': "off"; | ||
| '@typescript-eslint/explicit-module-boundary-types': "off"; | ||
| 'no-dupe-class-members': "off"; | ||
| '@typescript-eslint/no-dupe-class-members': ["error"]; | ||
| '@typescript-eslint/no-empty-function': "off"; | ||
| 'no-shadow': "off"; | ||
| '@typescript-eslint/no-shadow': "warn"; | ||
| curly: ["error", string]; | ||
| eqeqeq: ["error", string, { | ||
| null: string; | ||
| })[]; | ||
| 'no-implicit-coercion': string; | ||
| 'no-param-reassign': (string | { | ||
| }]; | ||
| 'no-implicit-coercion': "error"; | ||
| 'no-param-reassign': ["error", { | ||
| props: boolean; | ||
| ignorePropertyModificationsForRegex: string[]; | ||
| })[]; | ||
| 'sort-imports': string; | ||
| 'import/order': string; | ||
| 'simple-import-sort/exports': string; | ||
| 'simple-import-sort/imports': string; | ||
| }]; | ||
| 'sort-imports': "off"; | ||
| 'import/order': "off"; | ||
| 'simple-import-sort/exports': "warn"; | ||
| 'simple-import-sort/imports': "warn"; | ||
| }; | ||
@@ -78,0 +78,0 @@ }; |
+11
-8
| { | ||
| "name": "@taskade/eslint-plugin", | ||
| "version": "0.3.1", | ||
| "version": "0.4.0", | ||
| "description": "ESLint plugin for Taskade", | ||
| "main": "lib/index.js", | ||
| "typings": "src/index.ts", | ||
| "devDependencies": { | ||
| "@types/eslint": "^8.56.0" | ||
| }, | ||
| "dependencies": { | ||
| "@typescript-eslint/eslint-plugin": "^5.50.0", | ||
| "@typescript-eslint/parser": "^5.50.0", | ||
| "eslint": "^8.33.0", | ||
| "eslint-config-prettier": "^8.6.0", | ||
| "eslint-plugin-prettier": "^4.2.1", | ||
| "eslint-plugin-react": "^7.32.2", | ||
| "@typescript-eslint/eslint-plugin": "^6.15.0", | ||
| "@typescript-eslint/parser": "^6.15.0", | ||
| "eslint": "^8.56.0", | ||
| "eslint-config-prettier": "^9.1.0", | ||
| "eslint-plugin-prettier": "^5.1.1", | ||
| "eslint-plugin-react": "^7.33.2", | ||
| "eslint-plugin-react-hooks": "^4.6.0", | ||
| "eslint-plugin-simple-import-sort": "^10.0.0", | ||
| "prettier": "^2.8.3" | ||
| "prettier": "^3.1.1" | ||
| }, | ||
@@ -18,0 +21,0 @@ "publishConfig": { |
@@ -0,2 +1,7 @@ | ||
| import { ESLint } from 'eslint'; | ||
| export default { | ||
| env: { | ||
| es2020: true, | ||
| }, | ||
| extends: [ | ||
@@ -7,2 +12,3 @@ 'eslint:recommended', | ||
| 'plugin:react-hooks/recommended', | ||
| // Turns off all rules that are unnecessary or might conflict with Prettier. | ||
| 'plugin:prettier/recommended', | ||
@@ -13,3 +19,4 @@ 'plugin:@taskade/recommended', | ||
| parserOptions: { | ||
| ecmaVersion: 2018, // Node 10 and above | ||
| // https://node.green/#ES2020 | ||
| ecmaVersion: 2020, | ||
| sourceType: 'module', | ||
@@ -46,2 +53,2 @@ useJSXTextNode: true, | ||
| }, | ||
| }; | ||
| } satisfies ESLint.ConfigData; |
@@ -0,5 +1,4 @@ | ||
| import { ESLint } from 'eslint'; | ||
| export default { | ||
| env: { | ||
| es6: true, | ||
| }, | ||
| plugins: ['@typescript-eslint', 'simple-import-sort'], | ||
@@ -43,2 +42,2 @@ overrides: [ | ||
| }, | ||
| }; | ||
| } satisfies ESLint.ConfigData; |
Sorry, the diff of this file is not supported yet
377
1.62%20117
-36.28%1
Infinity%21
-4.55%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
Updated
Updated
Updated