1.0.13 • Published 3 months ago

jakelint v1.0.13

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

jakelint

jakelint

Installation

npm install --save-dev jakelint

Usage

Creating an ESLint Configuration File

In the root directory of your project, create a file named eslint.config.js with the following content:

export { default } from 'jakelint';

This ensures that ESLint automatically loads the configuration provided by jakelint when executed.

Updating the scripts Section in package.json

It is recommended to add the following scripts to your package.json for easier linting:

"scripts": {
  "lint": "eslint -c eslint.config.js",
  "lint:fix": "eslint --fix -c eslint.config.js"
}

You can specify files or directories to lint when running the command, for example:

npm run lint

Overriding TypeScript Configuration

If you need to specify a TypeScript configuration file (default is tsconfig.json), you can override it in eslint.config.mjs. For example, if you want to use a custom TypeScript configuration file:

import baseConfig from 'jakelint';

export default [
  ...baseConfig,
  {
    languageOptions: {
      parserOptions: {
        project: './your-tsconfig.json'
      }
    }
  }
];

Commands

Checking Code

npx eslint . --ext .js,.jsx,.ts,.tsx,.vue

Auto-fixing Issues

npx eslint . --ext .js,.jsx,.ts,.tsx,.vue --fix

Contributing

If you have any suggestions or improvements, feel free to submit a Pull Request or open an Issue!

License

MIT License

1.0.13

3 months ago

1.0.12

3 months ago

1.0.11

3 months ago

1.0.10

3 months ago

1.0.9

3 months ago

1.0.8

3 months ago

1.0.7

3 months ago

1.0.6

3 months ago

1.0.5

3 months ago

1.0.4

3 months ago

1.0.3

3 months ago

1.0.2

3 months ago

1.0.1

3 months ago

1.0.0

3 months ago