0.1.22-rc1 • Published 3 years ago

@spokedev/eslint-config-jigsaw v0.1.22-rc1

Weekly downloads
1,123
License
MIT
Repository
-
Last release
3 years ago

Linting

Contains the linting rules for Jigsaw.

Recommended VS Code Extensions

Please install the following extensions if using VS Code:

Quick Start

To use this linting package in your projects you must include the peerDependencies listed in the ./package.json as devDependencies in your project, and create a .eslintrc.js file the root directory of your project.

1. Add all the peerDependencies as devDependencies in your project:

{
  "name": "my-project",
  "devDependencies": {
    "@jigsaw/eslint-config-jigsaw": "-version-",
    "babel-eslint": "-version-",
    "eslint": "-version-",
    ... // See package.json for the full list of other dependencies required.
  }
}

2. Make sure you include an engines.node property in your package.json containing the minimum supported Node.js version, e.g. ">12":

{
  "name": "my-project",
  "devDependencies": {...},
  "engines": {
    "node": ">12"
  }
}

3. Create an .eslintrc.js file in the root directory of your project like one of the following:

Using the backend rules

module.exports = {
  "extends": "@spokedev/eslint-config-jigsaw/backend",
};

Using the frontend rules

module.exports = {
  "extends": "@spokedev/eslint-config-jigsaw/frontend",
};

Using the base rules

module.exports = {
  "extends": "@spokedev/eslint-config-jigsaw",
};

Making Changes

The frontend rules are contained in ./frontend.js and the backend rules in ./backend.js. You probably want to edit either of those files. The base rules are shared between both the frontend and backend and can be found in ./base.js.

  1. Modify the rules you need.
  2. If using a new plugin, make sure you add it as a peerDependency in ./package.json.
  3. Increment the package version with npm version [patch|minor|major].
  4. Git commit and push.
  5. Publish to npm with npm publish.
  6. Update projects with the new npm package version and run npm update.
0.1.22-rc1

3 years ago

0.1.21

3 years ago

0.1.20

4 years ago

0.1.19

4 years ago

0.1.18

5 years ago

0.1.17

5 years ago

0.1.16

5 years ago

0.1.15

5 years ago

0.1.14

5 years ago

0.1.13

5 years ago

0.1.12

5 years ago

0.1.11

5 years ago

0.1.10

5 years ago

0.1.9

5 years ago

0.1.8

5 years ago

0.1.7

5 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago