Skip to content

Commit 5eeb14b

Browse files
authored
Merge pull request #18 from climatiq/omit-parseroptions
Updated to omit parserOptions
2 parents 9ee8ff1 + 53c7898 commit 5eeb14b

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

README.md

+8-3
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,14 @@ yarn add --dev @climatiq/eslint-config
1212

1313
Now create an ESLint configuration file for your project that extends Climatiq's rules:
1414

15-
```json
16-
{
17-
"extends": ["@climatiq"]
15+
```js
16+
// eslint.rc.js
17+
module.exports = {
18+
"extends": ["@climatiq"],
19+
parserOptions: {
20+
project: true,
21+
tsconfigRootDir: __dirname,
22+
},
1823
}
1924
```
2025

index.js

-5
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,6 @@ module.exports = {
2525
{ vars: 'all', varsIgnorePattern: '^_', args: 'after-used', argsIgnorePattern: '^_' },
2626
],
2727
},
28-
29-
parserOptions: {
30-
project: true,
31-
tsconfigRootDir: "./tsconfig.json",
32-
},
3328
overrides: [
3429
{
3530
files: ['**/*.test.ts', '**/*/test-stubs.ts', '**/*/test-helpers.ts'],

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@climatiq/eslint-config",
3-
"version": "2.0.0",
3+
"version": "2.0.1",
44
"description": "ESlint configuration for Climatiq projects",
55
"main": "index.js",
66
"repository": {

0 commit comments

Comments
 (0)