Skip to content

Commit 8672dc1

Browse files
feat: Integrate postcss-css-grid plugin and enable TypeScript support (#1)
* feat: Remove formatter.js in favor of postcss-css-grid plugin * feat: Add TypeScript support
1 parent 4bc741e commit 8672dc1

File tree

13 files changed

+26979
-243
lines changed

13 files changed

+26979
-243
lines changed

.eslintrc.js

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
module.exports = {
2+
env: {
3+
browser: true,
4+
es2021: true,
5+
jest: true,
6+
},
7+
extends: ['airbnb-base'],
8+
parser: '@typescript-eslint/parser',
9+
settings: {
10+
'import/resolver': {
11+
node: {
12+
extensions: ['.js', '.jsx', '.ts', '.tsx'],
13+
},
14+
},
15+
},
16+
parserOptions: {
17+
ecmaVersion: 13,
18+
sourceType: 'module',
19+
},
20+
plugins: ['@typescript-eslint'],
21+
rules: {
22+
'import/extensions': [
23+
'error',
24+
'ignorePackages',
25+
{
26+
js: 'never',
27+
jsx: 'never',
28+
ts: 'never',
29+
tsx: 'never',
30+
},
31+
],
32+
semi: 'off',
33+
'no-plusplus': ['error', { allowForLoopAfterthoughts: true }],
34+
'function-paren-newline': 'off',
35+
'implicit-arrow-linebreak': 'off',
36+
'arrow-body-style': 'off',
37+
'operator-linebreak': 'off',
38+
'no-confusing-arrow': 'off',
39+
},
40+
}

babel-jest.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = {
2+
presets: [
3+
['@babel/preset-env', { targets: { node: 'current' } }],
4+
'@babel/preset-typescript',
5+
],
6+
}

dev/example.css

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
grid-template-areas:"a b"
33
"c d"
44

5-
"c d" ;
5+
"e f" ;
66
}
77

88
.testCss2 {
@@ -12,3 +12,8 @@
1212
.testCss3 {
1313
grid-template-areas:"a b";
1414
}
15+
16+
.testCss3 {
17+
grid-template-areas:"a var(--test1)"
18+
"var(--test2) b";
19+
}

0 commit comments

Comments
 (0)