Turmag's reusable eslint-config
- JavaScript: @stylistic + eslint
- TypeScript: @typescript-eslint + @stylistic + eslint
- Vue: @typescript-eslint + @stylistic + eslint + vueLint
Zero-Dependency
No need to install 3 plugins and 3 parsers: each language's latest plugin is bundled and configured.
Zero-Config
No need to remember each plugin's parserOptions;
- You'll first need to install ESLint:
npm i eslint@^9.15 --save-dev
# Or run this to use yarn
yarn add eslint@^9.15 --dev
# Or run this to use pnpm
pnpm add eslint@^9.15 --save-dev
- Install turmag-eslint-config.
npm i turmag-eslint-config --save-dev
# Or run this to use yarn
yarn add turmag-eslint-config --dev
# Or run this to use pnpm
pnpm add turmag-eslint-config --save-dev
- Create
eslint.config.js
in your project root.
In eslint.config.js
:
- Import config from turmag-eslint-config
import config from `'turmag-eslint-config'`;
- Use this config with your optional rules:
import config from 'turmag-eslint-config';
export default [
...config,
// Your rules there
{
rules: {
...
},
},
];
This code is licensed under the MIT License.