Skip to content

Commit f5694c2

Browse files
author
Michael Vurchio
committed
Merge branch 'feature/typescript'
2 parents 85b575c + 36164e1 commit f5694c2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+3393
-495
lines changed

.editorconfig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[*.{js,jsx,ts,tsx}]
2+
indent_style = space
3+
indent_size = 2
4+
end_of_line = lf
5+
trim_trailing_whitespace = true
6+
insert_final_newline = true
7+
max_line_length = 100

.eslintignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
node_modules/
2+
test/
3+
example/
4+
dist/

.eslintrc.js

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
module.exports = {
2+
env: {
3+
node: true,
4+
es2021: true
5+
},
6+
extends: [
7+
'airbnb-base',
8+
'plugin:@typescript-eslint/recommended',
9+
'prettier',
10+
'prettier/@typescript-eslint'
11+
],
12+
parser: '@typescript-eslint/parser',
13+
parserOptions: {
14+
ecmaVersion: 12,
15+
sourceType: 'module'
16+
},
17+
plugins: ['@typescript-eslint'],
18+
rules: {
19+
'comma-dangle': ['error', "only-multiline"],
20+
'import/extensions': [
21+
'error',
22+
'never',
23+
{
24+
ignorePackages: true
25+
}
26+
],
27+
'lines-between-class-members': [
28+
'error',
29+
'always',
30+
{
31+
exceptAfterSingleLine: true
32+
}
33+
],
34+
'no-const-assign': 'error'
35+
},
36+
settings: {
37+
'import/resolver': {
38+
node: {
39+
extensions: ['.ts']
40+
}
41+
}
42+
}
43+
};

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
node_modules
2+
dist
23
.DS_Store

.prettierignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules/
2+
example/
3+
dist/

.prettierrc.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"bracketSpacing": true,
3+
"parser": "typescript",
4+
"singleQuote": true,
5+
"semi": true,
6+
"tabWidth": 2,
7+
"trailingComma": "es5"
8+
}

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Svelte preprocess CSS Modules, changelog
22

3+
## 1.3.0 (Nov 22, 2020)
4+
- Feature: CSS Modules from imports
5+
- Fix: *global selector* Regex is now working with an attached bracket to the selector (missing space was throwing an error) `.myclass{ }`
6+
- Dev: use of typescript, set up eslint and prettier
7+
38
## 1.2.1 (Oct 31, 2020)
49
- Fix class chaining and pseudo selector [pull request #8](https://github.com/micantoine/svelte-preprocess-cssmodules/pull/8)
510

0 commit comments

Comments
 (0)