turmag-eslint-config
v2.0.74
Published
Turmag's reusable eslint-config
Downloads
258
Maintainers
Readme
turmag-eslint-config
Turmag's reusable eslint-config
Languages
Web
- JavaScript: @stylistic + eslint
- TypeScript: @typescript-eslint + @stylistic + eslint
- Vue: @typescript-eslint + @stylistic + eslint + vueLint
Data
Features
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;
Installation
- 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.jsin your project root.
Usage
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: {
...
},
},
];License
This code is licensed under the MIT License.
