@nivalis/eslint-config v2.6.1
@nivalis/eslint-config
ESLint shareable config flat config for nodejs, typescript, react, nextjs, tailwindcss, prettier...
Installation
npm i -D @nivalis/eslint-config
Usage
// eslint.config.js
import { nivalis } from '@nivalis/eslint-config';
export default nivalis();
// package.json
{
// ...
"type": "module"
}
Custom Config
import { nivalis } from '@nivalis/eslint-config';
import anotherConfig from 'another-config';
import anotherPlugin from 'another-plugin';
export default nivalis(
{
gitignore: true,
graphql: false, // true if graphql is installed
nextjs: false, // true if nextjs is installed
prettier: true,
react: true, // true if react is installed
sortKeys: false, // disabled by default
stylistic: false, // disabled by default
tailwindcss: true, // true if tailwindcss is installed
typescript: true, // true if typescript is installed
typescriptTypecheck: true, // true if typescript is installed
},
[
/* ignore some files */
{
ignores: ['tsup.config.ts'],
},
/* disable some rules */
{
rules: {
'no-console': 'off',
},
},
/* add another config */
anotherConfig,
/* add another plugin */
{
plugins: [anotherPlugin],
rules: {
// custom rules...
},
},
],
);
VSCode
{
"eslint.experimental.useFlatConfig": true
}
13 days ago
13 days ago
14 days ago
14 days ago
15 days ago
24 days ago
30 days ago
30 days ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago