Skip to content
This repository was archived by the owner on Feb 16, 2021. It is now read-only.

Commit 4cb28bc

Browse files
committed
add configuration files
1 parent 1859e2a commit 4cb28bc

File tree

6 files changed

+175
-0
lines changed

6 files changed

+175
-0
lines changed

.editorconfig

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
root = true
2+
3+
[*]
4+
5+
# Change these settings to your own preference
6+
indent_style = space
7+
indent_size = 2
8+
9+
# We recommend you to keep these unchanged
10+
end_of_line = lf
11+
charset = utf-8
12+
trim_trailing_whitespace = true
13+
insert_final_newline = true
14+
15+
[*.md]
16+
trim_trailing_whitespace = false

.gitignore

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
logs
2+
*.log
3+
npm-debug.log*
4+
yarn-debug.log*
5+
yarn-error.log*
6+
7+
# Dependency directories
8+
node_modules/
9+
10+
# Optional npm cache directory
11+
.npm
12+
13+
# dotenv environment variables file
14+
.env

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# postcss-typescript-css
2+
Version: 0.0.0
3+
4+
PostCSS plugin to create a typescript file by each CSS file

package.json

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"name": "postcss-typescript-css",
3+
"version": "0.0.0",
4+
"description": "PostCSS plugin to create a typescript file by each CSS file",
5+
"main": "src/index.ts",
6+
"repository": "[email protected]:ezavile/postcss-typescript-css.git",
7+
"author": "ezavile <[email protected]>",
8+
"license": "MIT"
9+
}

tsconfig.json

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"compilerOptions": {
3+
"outDir": "./dist/",
4+
"sourceMap": true,
5+
"noImplicitAny": true,
6+
"module": "commonjs",
7+
"target": "es5",
8+
"types": [
9+
"node"
10+
],
11+
"typeRoots": [
12+
"node_modules/@types"
13+
]
14+
},
15+
"include": [
16+
"./src/**/*"
17+
]
18+
}

tslint.json

+114
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
{
2+
"rules": {
3+
"member-access": false,
4+
"member-ordering": [
5+
true,
6+
"public-before-private",
7+
"static-before-instance",
8+
"variables-before-functions"
9+
],
10+
"no-any": false,
11+
"no-internal-module": true,
12+
"no-var-requires": false,
13+
"typedef-whitespace": [
14+
true,
15+
{
16+
"call-signature": "nospace",
17+
"index-signature": "nospace",
18+
"parameter": "nospace",
19+
"property-declaration": "nospace",
20+
"variable-declaration": "nospace"
21+
},
22+
{
23+
"call-signature": "space",
24+
"index-signature": "space",
25+
"parameter": "space",
26+
"property-declaration": "space",
27+
"variable-declaration": "space"
28+
}
29+
],
30+
"ban": false,
31+
"curly": false,
32+
"forin": true,
33+
"label-position": true,
34+
"no-arg": true,
35+
"no-bitwise": true,
36+
"no-conditional-assignment": true,
37+
"no-console": [
38+
true,
39+
"debug",
40+
"info",
41+
"time",
42+
"timeEnd",
43+
"trace"
44+
],
45+
"no-construct": true,
46+
"no-debugger": true,
47+
"no-duplicate-variable": true,
48+
"no-empty": false,
49+
"no-eval": true,
50+
"no-null-keyword": false,
51+
"no-shadowed-variable": true,
52+
"no-string-literal": false,
53+
"no-switch-case-fall-through": true,
54+
"no-unused-expression": true,
55+
"no-unused-variable": false,
56+
"no-use-before-declare": true,
57+
"no-var-keyword": true,
58+
"radix": true,
59+
"switch-default": true,
60+
"triple-equals": [
61+
true,
62+
"allow-null-check"
63+
],
64+
"eofline": true,
65+
"max-line-length": [
66+
true,
67+
150
68+
],
69+
"no-require-imports": false,
70+
"no-trailing-whitespace": true,
71+
"object-literal-sort-keys": false,
72+
"trailing-comma": [
73+
true,
74+
{
75+
"multiline": false,
76+
"singleline": "never"
77+
}
78+
],
79+
"class-name": true,
80+
"comment-format": [
81+
true,
82+
"check-space"
83+
],
84+
"jsdoc-format": true,
85+
"no-constructor-vars": false,
86+
"one-line": [
87+
true,
88+
"check-open-brace",
89+
"check-catch",
90+
"check-else",
91+
"check-finally",
92+
"check-whitespace"
93+
],
94+
"quotemark": [
95+
true,
96+
"single",
97+
"avoid-escape"
98+
],
99+
"semicolon": [true, "always"],
100+
"variable-name": [
101+
true,
102+
"allow-leading-underscore",
103+
"ban-keywords"
104+
],
105+
"whitespace": [
106+
true,
107+
"check-branch",
108+
"check-decl",
109+
"check-operator",
110+
"check-separator",
111+
"check-type"
112+
]
113+
}
114+
}

0 commit comments

Comments
 (0)