Skip to content

Commit ff3b8cd

Browse files
docs: ✏️ update incorrect configuration docs
The docs showed a JSON configuration in a JavaScript file.
1 parent 82277a3 commit ff3b8cd

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

README.md

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,13 @@ Create a ESLint config file at the root level named `.eslintrc-ci.js` and extend
6363

6464
- The `project` key should point to the primary app `tsconfig` file.
6565

66-
```json
67-
{
68-
"extends": ["@terminus/eslint-config-frontend"],
69-
"parserOptions": {
70-
"ecmaVersion": 6,
71-
"project": "./tsconfig.json",
72-
"sourceType": "module"
66+
```javascript
67+
module.exports = {
68+
extends: ['@terminus/eslint-config-frontend'],
69+
parserOptions: {
70+
ecmaVersion: 6,
71+
project: './tsconfig.json',
72+
sourceType: 'module'
7373
}
7474
}
7575
```
@@ -103,13 +103,13 @@ Create an ESLint config file at the root level named `.eslintrc.js` and extend t
103103

104104
- The `project` key should point to the primary app `tsconfig` file.
105105

106-
```json
107-
{
108-
"extends": ["@terminus/frontend-lint-config/development"],
109-
"parserOptions": {
110-
"ecmaVersion": 6,
111-
"project": "./tsconfig.json",
112-
"sourceType": "module"
106+
```javascript
107+
module.exports = {
108+
extends: ['@terminus/eslint-config-frontend/development'],
109+
parserOptions: {
110+
ecmaVersion: 6,
111+
project: './tsconfig.json',
112+
sourceType: 'module'
113113
}
114114
}
115115
```
@@ -120,16 +120,16 @@ Create an ESLint config file at the root level named `.eslintrc.js` and extend t
120120
121121
- The `project` key should point to the primary app `tsconfig` file.
122122

123-
```json
124-
{
125-
"extends": ["@terminus/frontend-lint-config/development"],
126-
"parserOptions": {
127-
"ecmaVersion": 6,
128-
"project": "./tsconfig.json",
129-
"sourceType": "module"
123+
```javascript
124+
module.exports = {
125+
extends: ['@terminus/eslint-config-frontend/development'],
126+
parserOptions: {
127+
ecmaVersion: 6,
128+
project: './tsconfig.json',
129+
sourceType: 'module'
130130
},
131-
"rules": {
132-
"quotes": ["off"]
131+
rules: {
132+
quotes: ['off']
133133
}
134134
}
135135
```

0 commit comments

Comments
 (0)