Skip to content
This repository was archived by the owner on May 23, 2025. It is now read-only.

Commit 3958ff9

Browse files
authored
Merge pull request #11 from CoditEU/feature/move-to-org-codit
✏️ update docs + 📦 update package.json
2 parents 89b7e93 + 266b79b commit 3958ff9

File tree

3 files changed

+76
-15
lines changed

3 files changed

+76
-15
lines changed

README.md

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Unbrace ESLint Config
1+
# Codit ESLint Config
22

33
_A fair-minded way to reduce noise in Javascript_
44

@@ -13,7 +13,7 @@ The package contains our ESLint rules, including ES6, React, TypeScript, FlowTyp
1313
### Installation
1414

1515
```
16-
yarn add eslint-config-unbrace eslint@^6.8.0 --dev
16+
yarn add @codit/eslint-config eslint@^6.8.0 --dev
1717
```
1818

1919
Install dependencies. ESLint plugins [must also be installed](https://github.com/eslint/rfcs/pull/5).
@@ -29,7 +29,7 @@ The following configuration contains a setup for ES6, React, TypeScript & Pretti
2929
```
3030
"eslintConfig": {
3131
"extends": [
32-
"unbrace"
32+
"@codit"
3333
]
3434
}
3535
```
@@ -39,23 +39,29 @@ Or if you want to take more control or don't use TypeScript, you can also extend
3939
```
4040
"eslintConfig": {
4141
"extends": [
42-
"unbrace/core",
43-
"unbrace/flowtype",
44-
"unbrace/lodash",
45-
"unbrace/react"
42+
"@codit/core",
43+
"@codit/flowtype",
44+
"@codit/lodash",
45+
"@codit/react"
4646
]
4747
}
4848
4949
// or
5050
5151
"eslintConfig": {
5252
"extends": [
53-
"unbrace/core",
54-
"unbrace/es5"
53+
"@codit/core",
54+
"@codit/es5"
5555
]
5656
}
5757
```
5858

59+
## Older versions
60+
61+
Documentation for versions 1.x.x can be found in the docs folder:
62+
63+
- [Version 1.x.x](./docs/version-1.x.x.md)
64+
5965
## License
6066

6167
[MIT](LICENSE)

docs/version-1.x.x.md

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# Version 1.x.x
2+
3+
Documentation for all versions below 2.x.x
4+
Version 1.x.x has support for FlowType & Lodash which we are no longer supporting @ Codit and moving forward with version 2.x.x
5+
6+
## Usage
7+
8+
### Installation
9+
10+
```
11+
yarn add eslint-config-unbrace eslint@^6.8.0 --dev
12+
```
13+
14+
Install dependencies. ESLint plugins [must also be installed](https://github.com/eslint/rfcs/pull/5).
15+
16+
```
17+
yarn add -D eslint-plugin-babel@^5.3.0 eslint-plugin-filenames@^1.3.2 eslint-plugin-import@^2.19.1 eslint-plugin-promise@^4.2.1 eslint-plugin-react@^7.17.0 eslint-config-prettier@^6.9.0
18+
```
19+
20+
### Configuration
21+
22+
The following configuration contains a setup for ES6, React, TypeScript & Prettier
23+
24+
```
25+
"eslintConfig": {
26+
"extends": [
27+
"unbrace"
28+
]
29+
}
30+
```
31+
32+
Or if you want to take more control or don't use TypeScript, you can also extend the packages as follows (make sure to also install the correct dependencies, FlowType & Lodash f.e. are not listed in the step above):
33+
34+
```
35+
"eslintConfig": {
36+
"extends": [
37+
"unbrace/core",
38+
"unbrace/flowtype",
39+
"unbrace/lodash",
40+
"unbrace/react"
41+
]
42+
}
43+
44+
// or
45+
46+
"eslintConfig": {
47+
"extends": [
48+
"unbrace/core",
49+
"unbrace/es5"
50+
]
51+
}
52+
```
53+
54+
## License
55+
56+
[MIT](LICENSE)

package.json

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,21 @@
11
{
2-
"name": "eslint-config-unbrace",
2+
"name": "@codit/eslint-config",
33
"version": "1.1.0",
4-
"description": "Unbrace's shareable EsLint configuration",
4+
"description": "Codit's shareable EsLint configuration",
55
"main": "index.js",
66
"repository": {
77
"type": "git",
8-
"url": "https://github.com/unbrace/eslint-config-unbrace.git"
8+
"url": "https://github.com/CoditEU/eslint-config-codit.git"
99
},
1010
"keywords": [
1111
"eslint",
1212
"eslint-config",
1313
"react",
1414
"typescript",
1515
"javascript",
16-
"lodash",
17-
"unbrace"
16+
"codit"
1817
],
19-
"author": "Erwin Govaerts <erwin.govaerts@unbrace.be>",
18+
"author": "Erwin Govaerts <erwin.govaerts@codit.eu>",
2019
"license": "MIT",
2120
"devDependencies": {
2221
"@typescript-eslint/eslint-plugin": "^4.1.1",

0 commit comments

Comments
 (0)