Skip to content

Commit 33b48d3

Browse files
committed
feat: defined the initial config
1 parent 49f444f commit 33b48d3

8 files changed

+1306
-425
lines changed

.eslintcache

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[{"/Users/travi/development/form8ion/eslint-config-typescript/index.js":"1"},{"size":136,"mtime":1630636116007,"results":"2","hashOfConfig":"3"},{"filePath":"4","messages":"5","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1apq2cj","/Users/travi/development/form8ion/eslint-config-typescript/index.js",[]]

.eslintrc.yml

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
root: true
2+
extends:
3+
- '@form8ion'
4+
- '.'

.remarkrc.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,5 @@ exports.settings = {
99

1010
exports.plugins = [
1111
'@form8ion/remark-lint-preset',
12-
['remark-toc', {tight: true}],
13-
['remark-usage', {heading: 'example'}]
14-
];
12+
['remark-toc', {tight: true}]
13+
];

README.md

+8-4
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
* [Usage](#usage)
1616
* [Installation](#installation)
17-
* [Example](#example)
17+
* [Add to the project config](#add-to-the-project-config)
1818
* [Contributing](#contributing)
1919
* [Dependencies](#dependencies)
2020
* [Verification](#verification)
@@ -34,10 +34,14 @@
3434
$ npm install @form8ion/eslint-config-typescript --save-dev
3535
```
3636

37-
### Example
37+
### Add to the project config
3838

39-
```javascript
40-
const eslintConfigTypescript = require('.');
39+
Such as in an `.eslintrc.js`
40+
41+
```js
42+
module.exports = {
43+
extends: ['@form8ion', '@form8ion/typescript']
44+
};
4145
```
4246

4347
## Contributing

example.js

-1
This file was deleted.

index.js

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
extends: ['plugin:import/typescript'],
3+
parser: '@typescript-eslint/parser',
4+
plugins: ['@typescript-eslint']
5+
};

0 commit comments

Comments
 (0)