0.2.0 • Published 28 days ago
neostandard v0.2.0
neostandard
A modern equivalent to standard
Usage as CLI
TODO
Usage as config
npm install -D eslint@^9.0.0 neostandard
Add an
eslint.config.js
like:import { neostandard } from 'neostandard' export default neostandard({ semi: true, tsForJs: true })
Or for the most basic setup:
export { default } from 'neostandard'
Run ESLint using
npx eslint .
,npx eslint . --fix
or in some other way
Options
semi
- boolean - when set semi-colons will be enforced rather than banned (defaults tofalse
)noTs
- boolean - deactivates all TypeScript based linting (defaults tofalse
)tsForJs
- boolean - activates TypeScript based linting for JavaScript files (defaults tofalse
)typeChecking
- boolean - activates type checking rules (defaults tofalse
)
Additional TypeScript Eslint Parser options
project
- can be useful whentypeChecking
is ontsconfigRootDir
- can be useful whentypeChecking
is on