-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path.eslintrc.yml
37 lines (37 loc) · 956 Bytes
/
.eslintrc.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
root: true
extends:
- '@telefonica/eslint-config'
plugins:
- mistica-local-rules
overrides:
- files:
- '*.js'
parser: espree
env:
node: true
es2020: true
- files:
- '.storybook/**/*.{js,ts,tsx}'
- 'src/__stories__/**/*.{js,ts,tsx}'
- 'playroom/**/*.{js,ts,tsx}'
- '**/*-test.tsx'
- '**/*-story.tsx'
rules:
mistica-local-rules/use-client: 'off'
- files:
- '*.tsx'
rules:
no-restricted-imports:
- error
- patterns:
- group:
- '@vanilla-extract/css'
- '**/sprinkles.css'
message: This package should only be imported in css files
rules:
import/extensions:
- error
- js: never
json: always
css: always
mistica-local-rules/use-client: error