4.0.0 • Published 16 days ago

eslint-config-simplesense v4.0.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
16 days ago

Simplesense ESLint Config

GitHub Pages Build

Generating Documentation

All rules must be documented so they can be searched in GitHub Pages. Documentation is auto-generated using the generate-docs script. Most ESLint plugins provide individual rules' documentation with the file structure of docs/<rule-name>.md in their source. Some plugins will ship the docs directory within their package, others exclude them by not providing the docs directory within their package configuration.

  • When docs are shipped with the NPM module, use the writeFromModules method.
  • When docs exist, but are not available within node_modules, use the writeFromGitHub method.
  • When no docs are provided, create individual markdown files, following docs/static/<plugin-name>/<rule-name>.md, and use the writeFromStatic method.

Adding Plugins / Configurations

Adding plugins is fairly straightforward.

Step 1

  • To simply use a recommended configuration, add the plugin as a dependency and add config to the config directory that imports the recommended rules and the plugin itself. Then add the config to the exported array in index.js.
  • To configure custom rules for a plugin, add a new file, rules/<plugin-name>.js, and export the rules object. Then add the config by following the details in the previous step, however, use the custom rules by themselves or with the exported recommended rules of the plugin.
  • If the new plugin lints a new file type, add a index.<filetype> file to the filetypes directory and update the lint:eslint script in package.json to include the new extension.

Step 2

Add your new plugin to the docs-config helper, specifiying the necessary properties required to generate the documentation.

Step 3

Verify everything builds as expected.

npm install
npm run lint
npm run test
npm run docs:dev
# navigate to the URL provided by Vuepress
4.0.0

16 days ago

3.2.0

30 days ago

3.1.12

2 months ago

3.1.11

3 months ago

3.1.10

5 months ago

3.1.9

6 months ago

3.1.8

7 months ago

3.1.7

8 months ago

3.1.6

8 months ago

3.1.5

8 months ago

3.1.4

9 months ago

3.1.3

9 months ago

3.1.2

10 months ago

3.1.1

11 months ago

3.1.0

12 months ago

3.0.1

1 year ago

2.3.23

1 year ago

3.0.0

1 year ago

2.3.22

1 year ago

2.3.21

1 year ago

2.3.20

1 year ago

2.3.17

2 years ago

2.3.19

1 year ago

2.3.18

2 years ago

2.3.16

2 years ago

2.3.15

2 years ago

2.3.14

2 years ago

2.3.8

2 years ago

2.3.9

2 years ago

2.3.13

2 years ago

2.3.12

2 years ago

2.3.11

2 years ago

2.3.10

2 years ago

2.3.7

2 years ago

2.3.6

2 years ago

2.3.5

2 years ago

2.3.0

2 years ago

2.2.0

2 years ago

2.1.1

2 years ago

2.3.2

2 years ago

2.3.1

2 years ago

2.3.4

2 years ago

2.3.3

2 years ago

2.1.0

2 years ago

2.0.0

2 years ago

1.2.0

2 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago