eslint-config-tjw-base

4.3.0 • Public • Published

eslint-config-tjw-base

The Jared Wilcurt's base ESLint 9+ rules for ESM projects.

For CJS and ESLint < v9, use v2.x releases.

Using this

  1. If you don't have a package.json do npm init -y first
  2. Run npm pkg set type=module
  3. Run npm install --save-dev eslint eslint-config-tjw-base @stylistic/eslint-plugin
  4. In your eslint.config.js add tjwBase to your config like so:
    import js from '@eslint/js';
    import tjwBase from 'eslint-config-tjw-base';
    
    export default [
      js.configs.recommended,
      tjwBase.configs.recommended,
      {
        // project specific settings
      }
    ];
  5. Run npm pkg set scripts.lint="eslint *.js src"
    • Change *.js src to your files and folders you want to be linted
  6. Run npm run lint

See also:

Readme

Keywords

Package Sidebar

Install

npm i eslint-config-tjw-base

Weekly Downloads

430

Version

4.3.0

License

MIT

Unpacked Size

9.61 kB

Total Files

7

Last publish

Collaborators

  • thejaredwilcurt