Skip to content

Commit ddf901b

Browse files
committed
Standarize Codestyle, Update README.md
1 parent 32dd5ac commit ddf901b

File tree

1,589 files changed

+49619
-12383
lines changed

Some content is hidden

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

1,589 files changed

+49619
-12383
lines changed

.eslintrc.json

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"es6": true
5+
},
6+
"extends": [
7+
"eslint:recommended",
8+
"plugin:react/recommended",
9+
"plugin:@typescript-eslint/eslint-recommended"
10+
],
11+
"globals": {
12+
"Atomics": "readonly",
13+
"SharedArrayBuffer": "readonly"
14+
},
15+
"parser": "@typescript-eslint/parser",
16+
"parserOptions": {
17+
"ecmaFeatures": {
18+
"jsx": true
19+
},
20+
"ecmaVersion": 2018,
21+
"sourceType": "module"
22+
},
23+
"plugins": [
24+
"react",
25+
"@typescript-eslint"
26+
],
27+
"rules": {
28+
"indent": [
29+
"error",
30+
4
31+
],
32+
"linebreak-style": [
33+
"error",
34+
"unix"
35+
],
36+
"quotes": [
37+
"error",
38+
"double"
39+
],
40+
"semi": [
41+
"error",
42+
"always"
43+
],
44+
"no-unused-vars": "off"
45+
}
46+
}

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
# dependencies
44
/node_modules
55
/.pnp
6-
.pnp.js
76

87
# testing
98
/coverage
@@ -21,3 +20,6 @@
2120
npm-debug.log*
2221
yarn-debug.log*
2322
yarn-error.log*
23+
24+
.yarn/unplugged
25+
.yarn/build-state.yml

.pnp.js

Lines changed: 32717 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.vscode/pnpify/eslint/bin/eslint.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/usr/bin/env node
2+
3+
const {createRequire, createRequireFromPath} = require(`module`);
4+
const {resolve} = require(`path`);
5+
6+
const relPnpApiPath = "../../../../.pnp.js";
7+
8+
const absPnpApiPath = resolve(__dirname, relPnpApiPath);
9+
const absRequire = (createRequire || createRequireFromPath)(absPnpApiPath);
10+
11+
// Setup the environment to be able to require eslint/bin/eslint.js
12+
require(absPnpApiPath).setup();
13+
14+
// Defer to the real eslint/bin/eslint.js your application uses
15+
module.exports = absRequire(`eslint/bin/eslint.js`);

.vscode/pnpify/eslint/lib/api.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/usr/bin/env node
2+
3+
const {createRequire, createRequireFromPath} = require(`module`);
4+
const {resolve} = require(`path`);
5+
6+
const relPnpApiPath = "../../../../.pnp.js";
7+
8+
const absPnpApiPath = resolve(__dirname, relPnpApiPath);
9+
const absRequire = (createRequire || createRequireFromPath)(absPnpApiPath);
10+
11+
// Setup the environment to be able to require eslint/lib/api.js
12+
require(absPnpApiPath).setup();
13+
14+
// Defer to the real eslint/lib/api.js your application uses
15+
module.exports = absRequire(`eslint/lib/api.js`);

.vscode/pnpify/eslint/package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"name": "eslint",
3+
"version": "6.8.0-pnpify",
4+
"main": "./lib/api.js"
5+
}

.vscode/pnpify/typescript/bin/tsc

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/usr/bin/env node
2+
3+
const {createRequire, createRequireFromPath} = require(`module`);
4+
const {resolve} = require(`path`);
5+
6+
const relPnpApiPath = "../../../../.pnp.js";
7+
8+
const absPnpApiPath = resolve(__dirname, relPnpApiPath);
9+
const absRequire = (createRequire || createRequireFromPath)(absPnpApiPath);
10+
11+
// Setup the environment to be able to require typescript/bin/tsc
12+
require(absPnpApiPath).setup();
13+
14+
// Defer to the real typescript/bin/tsc your application uses
15+
module.exports = absRequire(`typescript/bin/tsc`);
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/usr/bin/env node
2+
3+
const {createRequire, createRequireFromPath} = require(`module`);
4+
const {resolve} = require(`path`);
5+
6+
const relPnpApiPath = "../../../../.pnp.js";
7+
8+
const absPnpApiPath = resolve(__dirname, relPnpApiPath);
9+
const absRequire = (createRequire || createRequireFromPath)(absPnpApiPath);
10+
11+
// Setup the environment to be able to require typescript/bin/tsserver
12+
require(absPnpApiPath).setup();
13+
14+
// Defer to the real typescript/bin/tsserver your application uses
15+
module.exports = absRequire(`typescript/bin/tsserver`);

.vscode/pnpify/typescript/lib/tsc.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/usr/bin/env node
2+
3+
const {createRequire, createRequireFromPath} = require(`module`);
4+
const {resolve} = require(`path`);
5+
6+
const relPnpApiPath = "../../../../.pnp.js";
7+
8+
const absPnpApiPath = resolve(__dirname, relPnpApiPath);
9+
const absRequire = (createRequire || createRequireFromPath)(absPnpApiPath);
10+
11+
// Setup the environment to be able to require typescript/lib/tsc.js
12+
require(absPnpApiPath).setup();
13+
14+
// Defer to the real typescript/lib/tsc.js your application uses
15+
module.exports = absRequire(`typescript/lib/tsc.js`);
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/usr/bin/env node
2+
3+
const {createRequire, createRequireFromPath} = require(`module`);
4+
const {resolve} = require(`path`);
5+
6+
const relPnpApiPath = "../../../../.pnp.js";
7+
8+
const absPnpApiPath = resolve(__dirname, relPnpApiPath);
9+
const absRequire = (createRequire || createRequireFromPath)(absPnpApiPath);
10+
11+
// Setup the environment to be able to require typescript/lib/tsserver.js
12+
require(absPnpApiPath).setup();
13+
14+
// Defer to the real typescript/lib/tsserver.js your application uses
15+
module.exports = absRequire(`typescript/lib/tsserver.js`);

0 commit comments

Comments
 (0)