neostandard
v0.3.0
Published
A modern successor to standard
Downloads
211
Keywords
Readme
neostandard
A modern equivalent to standard
Usage
npm install -D neostandard
Add an
eslint.config.js
like:import { neostandard } from 'neostandard' export default neostandard({ // options })
In CommonJS:
module.exports = require('neostandard')({ // options })
Run
neostandard
by running ESLint, eg. usingnpx eslint
,npx eslint --fix
or similar
Options
ignores
- string[] - an array of glob patterns indicating the files that the config should not apply tonoStyle
- boolean - if set, no style rules will be addedsemi
- boolean - if set, enforce rather than forbid semicolons
Differences to standard / eslint-config-standard 17.x
- Uses ESLint flat configs to bundle plugins rather than relying on
standard-engine
- Built upon ESLint 9
- Support for
.ts
files out of the box - Contains
semistandard
as option in main package - Uses
eslint-stylistic
instead of deprecated ESLint style rules - Enables opting out of style rules (no need for eg.
eslint-config-prettier
anymore)
Changed rules
@stylistic/comma-dangle
– changed – set to prefer dangling commas in everything but functions and is it set towarn
rather thanerror
Relaxed rules
@stylistic/no-multi-spaces
– changed – setsignoreEOLComments
totrue
, useful for aligning comments across multiple linedot-notation
– deactivated – clashes with thenoPropertyAccessFromIndexSignature
check in TypeScriptno-unused-vars
– changed – sets"args": "all", "argsIgnorePattern": "^_",
to be in sync with TypeScriptnoUnusedParameters
n/no-deprecated-api
– changed – changed towarn
instead oferror
as they are not an urgent things to fix
Missing bits
- Some plugins are not yet supporting ESLint 9 or flat configs and has thus not yet been added. These are:
eslint-plugin-import
andeslint-plugin-promise
- JSX parsing is not supported out of the box