@lmcd/eslint-config
v0.7.0
Published
Opinionated ESLint configuration.
Downloads
4
Readme
@lmcd/eslint-config
Opinionated ESLint configuration.
Remove any old packages:
pnpm rm @lachlanmcdonald/eslint-config-eslint
Install latest version:
pnpm i -D eslint
pnpm i -D globals
pnpm i -D @eslint/js
pnpm i -D @stylistic/eslint-plugin
pnpm i -D @lmcd/eslint-config
Add to eslint.config.js
or similar:
import globals from 'globals';
import pluginJs from '@eslint/js';
import stylistic from '@stylistic/eslint-plugin';
import { rules } from '@lmcd/eslint-config';
export default [
pluginJs.configs.recommended,
{
rules,
languageOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
globals: {
...globals.node,
...globals.browser,
},
},
ignores: ['dist/*'],
plugins: {
'@stylistic': stylistic,
},
},
];