Skip to content

Commit 5c6eb76

Browse files
Release v1.0.0
1 parent 4d86cfc commit 5c6eb76

21 files changed

+266
-261
lines changed

CHANGELOG.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1-
## 0.1.0 - First Release
1+
## [1.0.0] - 2021-12-14
22

3-
* Initial release
3+
- Update configuration
4+
- Update logic
5+
- Update Jasmine tests
6+
7+
## [0.1.0] - First Release
8+
9+
- Initial release

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2018, DopustimVladimir <[email protected]>
1+
Copyright (c) 2021, DopustimVladimir <[email protected]>
22

33
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
44

README.md

Lines changed: 12 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,30 +3,21 @@
33

44
Configuration file for ESLint
55

6-
[![NPM](https://img.shields.io/npm/dt/@dopustim/eslint-config.svg?style=flat-square)](https://www.npmjs.com/package/@dopustim/eslint-config)
7-
8-
[![GitHub tag](https://img.shields.io/github/tag/dopustim/eslint-config.svg?style=flat-square)](https://github.com/dopustim/eslint-config/tags)
9-
[![GitHub stars](https://img.shields.io/github/stars/dopustim/eslint-config.svg?style=flat-square)](https://github.com/dopustim/eslint-config/stargazers)
10-
[![GitHub issues](https://img.shields.io/github/issues/dopustim/eslint-config.svg?style=flat-square)](https://github.com/dopustim/eslint-config/issues)
11-
12-
[![License](https://img.shields.io/badge/license-ISC-green.svg?style=flat-square)](/LICENSE.md)
6+
[![NPM](https://img.shields.io/npm/dt/@dopustim/eslint-config?style=flat-square)](https://www.npmjs.com/package/@dopustim/eslint-config)
137

148
## Features
159

1610
- Provide Errors and Warnings
1711
- 4 spaces for indentation (warning)
18-
- 100 symbols per line (warning)
12+
- 90 symbols per line (warning)
1913
- Unix linebreaks (warning)
20-
- Support ES2018
21-
- Support ECMAScript Modules
22-
- No environment
2314

2415
## Usage
2516

2617
Install `@dopustim/eslint-config` package via [NPM](https://www.npmjs.com/package/@dopustim/eslint-config):
2718

2819
```sh
29-
$ npm i -D eslint @dopustim/eslint-config
20+
npm install -D eslint @dopustim/eslint-config
3021
```
3122

3223
Extend this config in your `.eslintrc.json`:
@@ -51,19 +42,20 @@ You can also set environment and reassign any rule for your needs:
5142
{
5243
"extends": "@dopustim/eslint-config",
5344
"env": {
45+
"browser": true,
46+
"es2020": true,
5447
"node": true
5548
},
49+
"parserOptions": {
50+
"sourceType": "module",
51+
"ecmaVersion": 2020
52+
},
5653
"rules": {
57-
"require-jsdoc": 0,
58-
"no-console": 0
54+
"max-len": [ 1, { "code": 100 } ]
5955
}
6056
}
6157
```
6258

63-
## Rules
64-
65-
You can find all rules on [official site](https://eslint.org/docs/rules/).
66-
67-
## License
59+
## About
6860

69-
[ISC License](./LICENSE.md) © 2018 Dopustim Vladimir
61+
Visit the [ESLint website](https://eslint.org) to find out all rules and descriptions.

index.js

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
1-
module.exports = {
1+
const possibleProblems = require("./rules/possible-problems.json")
2+
const suggestions = require("./rules/suggestions.json")
3+
const layoutAndFormatting = require("./rules/layout-and-formatting.json")
24

3-
parserOptions: {
4-
ecmaVersion: 2018,
5-
sourceType: 'module'
6-
},
7-
extends: [
8-
'./rules/possible-errors.json',
9-
'./rules/best-practices.json',
10-
'./rules/variables.json',
11-
'./rules/nodejs.json',
12-
'./rules/stylistic-issues.json',
13-
'./rules/ecmascript-6.json'
14-
].map(require.resolve)
15-
};
5+
module.exports = {
6+
extends: "eslint:recommended",
7+
rules: {
8+
...possibleProblems,
9+
...suggestions,
10+
...layoutAndFormatting
11+
}
12+
}

package.json

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,29 @@
11
{
22
"name": "@dopustim/eslint-config",
3-
"version": "0.1.0",
3+
"version": "1.0.0",
44
"description": "Configuration file for ESLint",
5-
"keywords": [
6-
"configuration",
7-
"config",
8-
"json",
9-
"validate",
10-
"lint",
11-
"linter",
12-
"eslint"
13-
],
5+
"keywords": [ "dopustim", "eslint", "config", "validate", "lint", "linter" ],
146
"author": "DopustimVladimir",
157
"license": "ISC",
168
"repository": "https://github.com/dopustim/eslint-config",
179
"main": "index.js",
1810
"scripts": {
19-
"test": "jasmine spec/index-spec.js"
11+
"test": "jasmine spec/*-spec.js"
2012
},
2113
"devDependencies": {
22-
"eslint": "^5.9.0",
23-
"jasmine": "^3.3.0"
14+
"jasmine": "^3.10.0",
15+
"eslint": "^8.4.1"
2416
},
2517
"eslintConfig": {
26-
"extends": "./index.js",
18+
"extends": "@dopustim/eslint-config",
2719
"env": {
28-
"node": true,
29-
"jasmine": true
20+
"jasmine": true,
21+
"es2020": true,
22+
"node": true
23+
},
24+
"parserOptions": {
25+
"sourceType": "module",
26+
"ecmaVersion": 2020
3027
}
3128
}
3229
}

rules/best-practices.json

Lines changed: 0 additions & 51 deletions
This file was deleted.

rules/ecmascript-6.json

Lines changed: 0 additions & 24 deletions
This file was deleted.

rules/layout-and-formatting.json

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
{
2+
"array-bracket-newline": [ 1, "consistent" ],
3+
"array-bracket-spacing": [ 1, "always" ],
4+
"arrow-parens": [ 1 ],
5+
"arrow-spacing": [ 1 ],
6+
"block-spacing": [ 1 ],
7+
"brace-style": [ 1 ],
8+
"comma-dangle": [ 1 ],
9+
"comma-spacing": [ 1 ],
10+
"comma-style": [ 1 ],
11+
"computed-property-spacing": [ 1 ],
12+
"eol-last": [ 1 ],
13+
"func-call-spacing": [ 1 ],
14+
"function-paren-newline": [ 1, "never" ],
15+
"generator-star-spacing": [ 1, "after" ],
16+
"implicit-arrow-linebreak": [ 1 ],
17+
"indent": [ 1, 4, { "SwitchCase": 1 } ],
18+
"key-spacing": [ 1 ],
19+
"keyword-spacing": [ 1 ],
20+
"linebreak-style": [ 1 ],
21+
"lines-between-class-members": [ 1 ],
22+
"max-len": [ 1, { "code": 90 } ],
23+
"new-parens": [ 1 ],
24+
"no-multi-spaces": [ 1 ],
25+
"no-multiple-empty-lines": [ 1, { "max": 1 } ],
26+
"no-tabs": [ 1 ],
27+
"no-trailing-spaces": [ 1 ],
28+
"no-whitespace-before-property": [ 1 ],
29+
"object-curly-spacing": [ 1, "always" ],
30+
"operator-linebreak": [ 1, "after", { "overrides": { "?": "ignore", ":": "ignore" } } ],
31+
"quotes": [ 1 ],
32+
"rest-spread-spacing": [ 1 ],
33+
"semi": [ 1, "never" ],
34+
"semi-spacing": [ 1 ],
35+
"semi-style": [ 1 ],
36+
"space-before-blocks": [ 1 ],
37+
"space-before-function-paren": [ 1, { "anonymous": "never", "named": "never", "asyncArrow": "always" } ],
38+
"space-in-parens": [ 1 ],
39+
"space-infix-ops": [ 1 ],
40+
"space-unary-ops": [ 1 ],
41+
"switch-colon-spacing": [ 1 ],
42+
"template-curly-spacing": [ 1 ],
43+
"template-tag-spacing": [ 1 ],
44+
"wrap-iife": [ 1, "inside" ],
45+
"yield-star-spacing": [ 1, "after" ]
46+
}

rules/nodejs.json

Lines changed: 0 additions & 12 deletions
This file was deleted.

rules/possible-errors.json

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)