typescript-eslint-standard
v9.23.0
Published
quickly start eslint in typescript
Downloads
661
Readme
⚡typescript-eslint-standard
quickly start eslint in typescript.
install
npm i typescript-eslint-standard -D
eslint.config.js
import { defineConfig } from 'typescript-eslint-standard';
export default defineConfig();
.prettierrc.js
/**
* @type {import("prettier").Config}
*/
export default {
singleQuote: true,
trailingComma: 'all',
bracketSameLine: true,
endOfLine: 'auto',
};
custom configuration
import { defineConfig } from 'typescript-eslint-standard';
import tseslint from 'typescript-eslint';
export default defineConfig({
extends: [...tseslint.configs.recommended, ...tseslint.configs.strict],
rules: {
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/no-empty-object-type': 'off',
},
});