UNPKG

@quitsmx/eslint-config

Version:

Customized ESLint config for TypeScript + React or Preact + Prettierx

174 lines (103 loc) 5.05 kB
# @quitsmx/eslint-config Changes ESLint preset for QuITS apps ## \[0.5.5] - 2021-06-09 ### Changed - Updated dependencies to allow TS v4.3 ## \[0.5.4] - 2021-05-17 ### Changed - Updated dependencies ### Removed - [react/jsx-handler-names](https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-handler-names.md) because conflict with [@typescript-eslint/naming-convention](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/naming-convention.md) ## \[0.5.3] - 2021-05-01 ### Changed - In the `overrides` block of the .eslintrc.json generated by `quits-eslint-init`: - Add "`./*.js`" to include JS files in the root. - Add "`rollup.config.js,scripts/**.**/*.ts`" to enable ES6 `import`/`export` directives. - Separate "`bin/**/*`" to enable [node/no-unpublished-require](https://github.com/mysticatea/eslint-plugin-node/blob/master/docs/rules/no-unpublished-require.md) as error. - Move "confusing-browser-globals" from `dependencies` to `devDependencies`. - Include files in the root and "bin" folders in the test. - Update Readme. ### Removed - [node/no-unpublished-require](https://github.com/mysticatea/eslint-plugin-node/blob/master/docs/rules/no-unpublished-require.md), since this rule only makes sense in the "bin" folder. ## \[0.5.2] - 2021-04-29 ### Fixed - The `overrides` block of the .eslintrc.json generated by `quits-eslint-init` was wrong. ## \[0.5.1] - 2021-04-28 ### Added - .editorconfig file. ### Changed - Remove `warnOnUnsupportedTypeScriptVersion` to allow TypeScript version check. - Include "PascalCase" format for functions and methods in `@typescript-eslint/naming-convention` to allow _Functional Components_ in react and preact. ### Fixed - Move `ecmaVersion` and `ecmaFeatures` to the `parserOptions` block, the correct one. - Fix lint errors and tests. ## \[0.5.0] - 2021-04-27 ### Changed In build time, the configuration of this package are based on the eslint-config-prettier, eslint-config-standard and eslint-config-standard-jsx packages, which are not required in runtime. Several rules have been changed to fit the new base and others have been added. Include workaround for typescript-eslint/typescript-eslint#2540 Updated bin/quits-eslint-init ### Removed - unicorn/no-zero-fractions - sometimes a trailing zero improves clarity - bin/list-eslint-config - use `yarn eslint --print-config` - eslint-plugin-jsx-a11y - It is easy to install from npm - eslint-plugin-react-perf - `react/jsx-no-bind` is enough ## \[0.4.2] - 2021-03-08 ### Changed - Update dependencies. - Accept changes of minor version in `peerDependencies` ### Removed - `@typescript-eslint/prefer-optional-chain` as optional-chain is expansive in es2018 and lower. ## \[0.4.1] - 2021-03-05 ### Added - `curly` as warn, only for multi-line (Prettierx doesn't force braces). - react package to `devDependencies` to allow test the "react" config. ### Changed - Update dependencies. ### Fixed - `@typescript-eslint/no-for-in-array` must be in 'ts-runtime' only. ## \[0.4.0] - 2021-02-19 ### Added - `publishConfig.access: 'public'` in package.json ### Changed - Use `@typescript-eslint/no-shadow` instead `no-shadow` in TypeScript files. The following `@typescript-eslint` runtime rules are disabled: - `no-unnecessary-condition` - `prefer-readonly-parameter-types` - `prefer-readonly` - `prefer-string-starts-ends-with` - `strict-boolean-expressions` - `unbound-method` ## \[0.3.1] - 2021-02-18 ### Changed - Minor fixes to the Readme - Add missing `"spaceBeforeFunctionParen": true` to .prettierrc.json - Now `quits-eslint-init` creates a '.vscode/settings.json' file with basic VS Code settings to apply '@quitsmx/eslint-config' to JavaScript files, with automatic format on save. - Update dependencies. ## \[0.3.0] - 2021-02-15 ### Added - `unicorn/numeric-separators-style` as warn in TypeScript overrides - `unicorn/prefer-array-find` as error - `unicorn/prefer-array-flat-map` as warn - `unicorn/prefer-date-now` as error - `unicorn/prefer-regexp-test` as warn - `unicorn/prefer-string-trim-start-end` as warn - `unicorn/prefer-ternary` as warn - `@typescript-eslint/no-implicit-any-catch` as warn ### Changed - `unicorn/prefer-keyboard-event-key` from error to warn - Move `unicorn/prefer-optional-catch-binding` to TypeScript overrides ### Removed - `@typescript-eslint/no-unused-vars-experimental` from ts-runtime, as it is slow. ### Fixed - Exclude test files from the npm package. ## \[0.2.0] - 2021-02-14 ### Added - Basic test ### Changed - Accept `@typescript-eslint/ts-expect-error` & "ts-check" without description. - Remove `@typescript-eslint/prefer-ts-expect-error` to allow "@ts-ignore" comments with description. - Review of the `eslint-plugin-node` rules: enable `no-unsupported-features`, `prefer-global`, `no-missing-require` and remove those related to `import`. - Limit `@typescript-eslint/prefer-optional-chain` to TypeScript files. ## \[0.1.0] - 2021-02-12 First public version