2.6.1 • Published 5 months ago
eslint-config-decent v2.6.1
eslint-config-decent
A decent ESLint configuration for TypeScript projects.
Example usage
// eslint.config.mjs
import { config } from 'eslint-config-decent';
export default config({
tsconfigRootDir: import.meta.dirname,
});
Override parserOptions
// eslint.config.mjs
import { config } from 'eslint-config-decent';
export default config({
parserOptions: {
projectService: {
defaultProject: 'tsconfig.json',
},
tsconfigRootDir: import.meta.dirname,
},
});
Disable require-extensions rules
// eslint.config.mjs
import { config } from 'eslint-config-decent';
export default config({
enableRequireExtensions: false,
tsconfigRootDir: import.meta.dirname,
});
Override a rule
// eslint.config.mjs
import { config } from 'eslint-config-decent';
export default [
...config({
tsconfigRootDir: import.meta.dirname,
}),
{
files: ['**/*.ts'],
rules: {
'@typescript-eslint/no-confusing-void-expression': 'off',
},
},
];
Use typescript-eslint config
// eslint.config.mjs
import { tsEslintConfig } from 'eslint-config-decent';
import tsEslint from 'typescript-eslint';
export default tsEslint(
...tsEslintConfig({
tsconfigRootDir: import.meta.dirname,
}),
);
License
MIT
2.6.1
5 months ago
2.6.0-beta3
6 months ago
2.6.0-beta2
6 months ago
2.6.0-beta1
6 months ago
2.6.0
6 months ago
2.5.0-beta2
6 months ago
2.5.0
6 months ago
2.5.0-beta1
6 months ago
2.4.3
6 months ago
2.4.2
6 months ago
2.4.1
7 months ago
2.4.0
7 months ago
2.3.1
7 months ago
2.3.0
8 months ago
2.2.4
8 months ago
2.2.3
9 months ago
2.2.1
11 months ago
2.2.0
12 months ago
2.2.2
11 months ago
2.1.0
1 year ago
1.6.0
1 year ago
2.0.3
1 year ago
2.0.2
1 year ago
2.0.4
1 year ago
2.0.1
1 year ago
2.0.0
1 year ago
1.4.2
1 year ago
1.5.0
1 year ago
1.2.8
1 year ago
1.2.7
1 year ago
1.2.6
1 year ago
1.2.5
1 year ago
1.2.4
1 year ago
1.2.3
1 year ago
1.4.0
1 year ago
1.2.2
1 year ago
1.3.0
1 year ago
1.2.1
1 year ago
1.2.9
1 year ago
1.2.0
1 year ago
1.1.0
1 year ago
1.0.0
1 year ago