diff --git a/package.json b/package.json index a0fc9b7..b1cc627 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@solid/eslint-config-base", - "version": "0.1.8", + "version": "0.2.0", "description": "Solid defaults for eslinting.", "license": "MIT", "keywords": [ diff --git a/src/index.js b/src/index.js index 9a84327..3281ac8 100644 --- a/src/index.js +++ b/src/index.js @@ -17,7 +17,6 @@ module.exports = { * - ESLint recommended https://eslint.org/docs/rules/ * - Airbnb base https://github.com/airbnb/javascript/tree/master/packages/eslint-config-airbnb-base * - ES6+ export/imports https://github.com/benmosher/eslint-plugin-import/tree/master/config - * - Jest https://github.com/jest-community/eslint-plugin-jest#rules * - Prettier https://github.com/prettier/eslint-plugin-prettier#recommended-configuration */ extends: [ @@ -26,8 +25,6 @@ module.exports = { "plugin:import/errors", "plugin:import/warnings", "plugin:import/typescript", - "plugin:jest/recommended", - "plugin:jest/style", "plugin:prettier/recommended", ], @@ -320,5 +317,17 @@ module.exports = { "@typescript-eslint/no-unused-vars": "error", }, }, + { + files: [ "*.test.ts", "*.test.js" ], + + /** + * Extends (overrides in order of extension): + * - Jest https://github.com/jest-community/eslint-plugin-jest#rules + */ + extends: [ + "plugin:jest/recommended", + "plugin:jest/style", + ], + }, ], };