newt-eslint-config
v0.1.11
Published
[](https://www.npmjs.com/package/newt-eslint-config) 
Readme
newt-eslint-config
newt239's ESLint config.
Usage
npm install -D newt-eslint-config// eslint.config.js
import createConfig from "newt-eslint-config";
export default createConfig();If you want to add other rules, you can add them to the config.
// eslint.config.js
import createConfig from "newt-eslint-config";
const baseConfigs = createConfig();
const configs = [
...baseConfigs,
{
rules: {
"no-console": "error",
},
},
];
export default configs;Next.js
You must install @next/eslint-plugin-next as a dev dependency.
npm install -D @next/eslint-plugin-next// eslint.config.js
import createConfig from "newt-eslint-config";
export default createConfig({ next: true });Rule List
no-console
Disallow the use of console methods.
max-params
Limit the number of parameters of a function to 3.
prefer-arrow-functions
Enforce arrow functions for function expressions.
import/order
Enforce consistent import order.
max-lines
Limit the number of lines of a file to 300.
no-restricted-syntax
Limit the use of restricted syntax.
no-explicit-any
Disallow the use of any type.
no-unsafe-type-assertion
Disallow the use of unsafe type assertions.
no-unused-vars
Disallow the use of unused variables.
strict-boolean-expressions
Disallow the use of strict boolean expressions.
consistent-type-imports
Disallow the use of inconsistent type imports.
switch-exhaustiveness-check
Disallow the use of switch exhaustiveness check.
prefer-arrow-functions
Enforce arrow functions for function expressions.
