Skip to content

Commit be0d3e2

Browse files
committed
lint
1 parent 8829f50 commit be0d3e2

File tree

4 files changed

+256
-253
lines changed

4 files changed

+256
-253
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ See also [jupyterlab-night](https://github.com/martinRenou/jupyterlab-night).
88

99
## Requirements
1010

11-
* JupyterLab >= 3.0
11+
- JupyterLab >= 3.0
1212

1313
## Install
1414

package.json

Lines changed: 190 additions & 189 deletions
Original file line numberDiff line numberDiff line change
@@ -1,200 +1,201 @@
11
{
2-
"name": "jupyterlab-day",
3-
"version": "0.1.0",
4-
"description": "Dark theme for JupyterLab",
5-
"keywords": [
6-
"jupyter",
7-
"jupyterlab",
8-
"jupyterlab-extension"
9-
],
10-
"homepage": "https://github.com/martinRenou/jupyterlab-day",
11-
"bugs": {
12-
"url": "https://github.com/martinRenou/jupyterlab-day/issues"
13-
},
14-
"license": "BSD-3-Clause",
15-
"author": {
16-
"name": "Martin Renou",
17-
"email": "[email protected]"
18-
},
19-
"files": [
20-
"lib/**/*.{d.ts,eot,gif,html,jpg,js,js.map,json,png,svg,woff2,ttf}",
21-
"style/**/*.{css,js,eot,gif,html,jpg,json,png,svg,woff2,ttf}"
22-
],
23-
"main": "lib/index.js",
24-
"types": "lib/index.d.ts",
25-
"repository": {
26-
"type": "git",
27-
"url": "https://github.com/martinRenou/jupyterlab-day.git"
28-
},
29-
"scripts": {
30-
"build": "jlpm build:lib && jlpm build:labextension:dev",
31-
"build:labextension": "jupyter labextension build .",
32-
"build:labextension:dev": "jupyter labextension build --development True .",
33-
"build:lib": "tsc --sourceMap",
34-
"build:lib:prod": "tsc",
35-
"build:prod": "jlpm clean && jlpm build:lib:prod && jlpm build:labextension",
36-
"clean": "jlpm clean:lib",
37-
"clean:all": "jlpm clean:lib && jlpm clean:labextension && jlpm clean:lintcache",
38-
"clean:labextension": "rimraf jupyterlab_day/labextension jupyterlab_day/_version.py",
39-
"clean:lib": "rimraf lib tsconfig.tsbuildinfo",
40-
"clean:lintcache": "rimraf .eslintcache .stylelintcache",
41-
"eslint": "jlpm eslint:check --fix",
42-
"eslint:check": "eslint . --cache --ext .ts,.tsx",
43-
"install:extension": "jlpm build",
44-
"lint": "jlpm stylelint && jlpm prettier && jlpm eslint",
45-
"lint:check": "jlpm stylelint:check && jlpm prettier:check && jlpm eslint:check",
46-
"prettier": "jlpm prettier:base --write --list-different",
47-
"prettier:base": "prettier \"**/*{.ts,.tsx,.js,.jsx,.css,.json,.md}\"",
48-
"prettier:check": "jlpm prettier:base --check",
49-
"stylelint": "jlpm stylelint:check --fix",
50-
"stylelint:check": "stylelint --cache \"style/**/*.css\"",
51-
"watch": "run-p watch:src watch:labextension",
52-
"watch:labextension": "jupyter labextension watch .",
53-
"watch:src": "tsc -w --sourceMap"
54-
},
55-
"dependencies": {
56-
"@jupyterlab/application": "^4.3.3",
57-
"@jupyterlab/apputils": "^4.4.3"
58-
},
59-
"devDependencies": {
60-
"@jupyterlab/builder": "^4.0.0",
61-
"@types/json-schema": "^7.0.11",
62-
"@types/react": "^18.0.26",
63-
"@types/react-addons-linked-state-mixin": "^0.14.22",
64-
"@typescript-eslint/eslint-plugin": "^6.1.0",
65-
"@typescript-eslint/parser": "^6.1.0",
66-
"css-loader": "^6.7.1",
67-
"eslint": "^8.36.0",
68-
"eslint-config-prettier": "^8.8.0",
69-
"eslint-plugin-prettier": "^5.0.0",
70-
"npm-run-all": "^4.1.5",
71-
"npm-run-all2": "^7.0.1",
72-
"prettier": "^3.0.0",
73-
"rimraf": "^5.0.1",
74-
"source-map-loader": "^1.0.2",
75-
"style-loader": "^3.3.1",
76-
"stylelint": "^15.10.1",
77-
"stylelint-config-prettier": "^9.0.3",
78-
"stylelint-config-recommended": "^13.0.0",
79-
"stylelint-config-standard": "^34.0.0",
80-
"stylelint-csstree-validator": "^3.0.0",
81-
"stylelint-prettier": "^4.0.0",
82-
"typescript": "~5.0.2",
83-
"yjs": "^13.5.40"
84-
},
85-
"sideEffects": [
86-
"style/*.css"
87-
],
88-
"publishConfig": {
89-
"access": "public"
90-
},
91-
"jupyterlab": {
92-
"extension": true,
93-
"outputDir": "jupyterlab_day/labextension",
94-
"themePath": "style/index.css"
95-
},
96-
"jupyter-releaser": {
97-
"hooks": {
98-
"before-build-npm": [
99-
"python -m pip install jupyterlab~=3.1",
100-
"jlpm"
101-
],
102-
"before-build-python": [
103-
"jlpm clean:all"
104-
]
105-
}
106-
},
107-
"eslintConfig": {
108-
"extends": [
109-
"eslint:recommended",
110-
"plugin:@typescript-eslint/eslint-recommended",
111-
"plugin:@typescript-eslint/recommended",
112-
"plugin:prettier/recommended"
2+
"name": "jupyterlab-day",
3+
"version": "0.1.0",
4+
"description": "Dark theme for JupyterLab",
5+
"keywords": [
6+
"jupyter",
7+
"jupyterlab",
8+
"jupyterlab-extension"
1139
],
114-
"parser": "@typescript-eslint/parser",
115-
"parserOptions": {
116-
"project": "tsconfig.json",
117-
"sourceType": "module"
10+
"homepage": "https://github.com/martinRenou/jupyterlab-day",
11+
"bugs": {
12+
"url": "https://github.com/martinRenou/jupyterlab-day/issues"
13+
},
14+
"license": "BSD-3-Clause",
15+
"author": {
16+
"name": "Martin Renou",
17+
"email": "[email protected]"
11818
},
119-
"plugins": [
120-
"@typescript-eslint"
19+
"files": [
20+
"lib/**/*.{d.ts,eot,gif,html,jpg,js,js.map,json,png,svg,woff2,ttf}",
21+
"style/**/*.{css,js,eot,gif,html,jpg,json,png,svg,woff2,ttf}"
12122
],
122-
"rules": {
123-
"@typescript-eslint/naming-convention": [
124-
"error",
125-
{
126-
"selector": "interface",
127-
"format": [
128-
"PascalCase"
129-
],
130-
"custom": {
131-
"regex": "^I[A-Z]",
132-
"match": true
133-
}
134-
}
135-
],
136-
"@typescript-eslint/no-unused-vars": [
137-
"warn",
138-
{
139-
"args": "none"
23+
"main": "lib/index.js",
24+
"types": "lib/index.d.ts",
25+
"repository": {
26+
"type": "git",
27+
"url": "https://github.com/martinRenou/jupyterlab-day.git"
28+
},
29+
"scripts": {
30+
"build": "jlpm build:lib && jlpm build:labextension:dev",
31+
"build:labextension": "jupyter labextension build .",
32+
"build:labextension:dev": "jupyter labextension build --development True .",
33+
"build:lib": "tsc --sourceMap",
34+
"build:lib:prod": "tsc",
35+
"build:prod": "jlpm clean && jlpm build:lib:prod && jlpm build:labextension",
36+
"clean": "jlpm clean:lib",
37+
"clean:all": "jlpm clean:lib && jlpm clean:labextension && jlpm clean:lintcache",
38+
"clean:labextension": "rimraf jupyterlab_day/labextension jupyterlab_day/_version.py",
39+
"clean:lib": "rimraf lib tsconfig.tsbuildinfo",
40+
"clean:lintcache": "rimraf .eslintcache .stylelintcache",
41+
"eslint": "jlpm eslint:check --fix",
42+
"eslint:check": "eslint . --cache --ext .ts,.tsx",
43+
"install:extension": "jlpm build",
44+
"lint": "jlpm stylelint && jlpm prettier && jlpm eslint",
45+
"lint:check": "jlpm stylelint:check && jlpm prettier:check && jlpm eslint:check",
46+
"prettier": "jlpm prettier:base --write --list-different",
47+
"prettier:base": "prettier \"**/*{.ts,.tsx,.js,.jsx,.css,.json,.md}\"",
48+
"prettier:check": "jlpm prettier:base --check",
49+
"stylelint": "jlpm stylelint:check --fix",
50+
"stylelint:check": "stylelint --cache \"style/**/*.css\"",
51+
"watch": "run-p watch:src watch:labextension",
52+
"watch:labextension": "jupyter labextension watch .",
53+
"watch:src": "tsc -w --sourceMap"
54+
},
55+
"dependencies": {
56+
"@jupyterlab/application": "^4.3.3",
57+
"@jupyterlab/apputils": "^4.4.3"
58+
},
59+
"devDependencies": {
60+
"@jupyterlab/builder": "^4.0.0",
61+
"@types/json-schema": "^7.0.11",
62+
"@types/react": "^18.0.26",
63+
"@types/react-addons-linked-state-mixin": "^0.14.22",
64+
"@typescript-eslint/eslint-plugin": "^6.1.0",
65+
"@typescript-eslint/parser": "^6.1.0",
66+
"css-loader": "^6.7.1",
67+
"eslint": "^8.36.0",
68+
"eslint-config-prettier": "^8.8.0",
69+
"eslint-plugin-prettier": "^5.0.0",
70+
"npm-run-all": "^4.1.5",
71+
"npm-run-all2": "^7.0.1",
72+
"prettier": "^3.0.0",
73+
"rimraf": "^5.0.1",
74+
"source-map-loader": "^1.0.2",
75+
"style-loader": "^3.3.1",
76+
"stylelint": "^15.10.1",
77+
"stylelint-config-prettier": "^9.0.3",
78+
"stylelint-config-recommended": "^13.0.0",
79+
"stylelint-config-standard": "^34.0.0",
80+
"stylelint-csstree-validator": "^3.0.0",
81+
"stylelint-prettier": "^4.0.0",
82+
"typescript": "~5.0.2",
83+
"yjs": "^13.5.40"
84+
},
85+
"sideEffects": [
86+
"style/*.css"
87+
],
88+
"publishConfig": {
89+
"access": "public"
90+
},
91+
"jupyterlab": {
92+
"extension": true,
93+
"outputDir": "jupyterlab_day/labextension",
94+
"themePath": "style/index.css"
95+
},
96+
"jupyter-releaser": {
97+
"hooks": {
98+
"before-build-npm": [
99+
"python -m pip install jupyterlab~=3.1",
100+
"jlpm"
101+
],
102+
"before-build-python": [
103+
"jlpm clean:all"
104+
]
140105
}
141-
],
142-
"@typescript-eslint/no-explicit-any": "off",
143-
"@typescript-eslint/no-namespace": "off",
144-
"@typescript-eslint/no-use-before-define": "off",
145-
"@typescript-eslint/quotes": [
146-
"error",
147-
"single",
148-
{
149-
"avoidEscape": true,
150-
"allowTemplateLiterals": false
106+
},
107+
"eslintConfig": {
108+
"extends": [
109+
"eslint:recommended",
110+
"plugin:@typescript-eslint/eslint-recommended",
111+
"plugin:@typescript-eslint/recommended",
112+
"plugin:prettier/recommended"
113+
],
114+
"parser": "@typescript-eslint/parser",
115+
"parserOptions": {
116+
"project": "tsconfig.json",
117+
"sourceType": "module"
118+
},
119+
"plugins": [
120+
"@typescript-eslint"
121+
],
122+
"rules": {
123+
"@typescript-eslint/naming-convention": [
124+
"error",
125+
{
126+
"selector": "interface",
127+
"format": [
128+
"PascalCase"
129+
],
130+
"custom": {
131+
"regex": "^I[A-Z]",
132+
"match": true
133+
}
134+
}
135+
],
136+
"@typescript-eslint/no-unused-vars": [
137+
"warn",
138+
{
139+
"args": "none"
140+
}
141+
],
142+
"@typescript-eslint/no-explicit-any": "off",
143+
"@typescript-eslint/no-namespace": "off",
144+
"@typescript-eslint/no-use-before-define": "off",
145+
"@typescript-eslint/quotes": [
146+
"error",
147+
"single",
148+
{
149+
"avoidEscape": true,
150+
"allowTemplateLiterals": false
151+
}
152+
],
153+
"curly": [
154+
"error",
155+
"all"
156+
],
157+
"eqeqeq": "error",
158+
"prefer-arrow-callback": "error"
151159
}
160+
},
161+
"eslintIgnore": [
162+
"node_modules",
163+
"dist",
164+
"coverage",
165+
"**/*.d.ts"
166+
],
167+
"prettier": {
168+
"singleQuote": true,
169+
"trailingComma": "none",
170+
"arrowParens": "avoid",
171+
"endOfLine": "auto",
172+
"overrides": [
173+
{
174+
"files": "package.json",
175+
"options": {
176+
"tabWidth": 4
177+
}
178+
}
179+
]
180+
},
181+
"stylelint": {
182+
"extends": [
183+
"stylelint-config-recommended",
184+
"stylelint-config-standard",
185+
"stylelint-prettier/recommended"
152186
],
153-
"curly": [
154-
"error",
155-
"all"
187+
"plugins": [
188+
"stylelint-csstree-validator"
156189
],
157-
"eqeqeq": "error",
158-
"prefer-arrow-callback": "error"
159-
}
160-
},
161-
"eslintIgnore": [
162-
"node_modules",
163-
"dist",
164-
"coverage",
165-
"**/*.d.ts"
166-
],
167-
"prettier": {
168-
"singleQuote": true,
169-
"trailingComma": "none",
170-
"arrowParens": "avoid",
171-
"endOfLine": "auto",
172-
"overrides": [
173-
{
174-
"files": "package.json",
175-
"options": {
176-
"tabWidth": 4
177-
}
190+
"rules": {
191+
"csstree/validator": true,
192+
"property-no-vendor-prefix": null,
193+
"selector-class-pattern": null,
194+
"selector-no-vendor-prefix": null,
195+
"value-no-vendor-prefix": null,
196+
"alpha-value-notation": null,
197+
"color-function-notation": null,
198+
"custom-property-empty-line-before": null
178199
}
179-
]
180-
},
181-
"stylelint": {
182-
"extends": [
183-
"stylelint-config-recommended",
184-
"stylelint-config-standard",
185-
"stylelint-prettier/recommended"
186-
],
187-
"plugins": [
188-
"stylelint-csstree-validator"
189-
],
190-
"rules": {
191-
"csstree/validator": true,
192-
"property-no-vendor-prefix": null,
193-
"selector-class-pattern": "^([a-z][A-z\\d]*)(-[A-z\\d]+)*$",
194-
"selector-no-vendor-prefix": null,
195-
"value-no-vendor-prefix": null,
196-
"alpha-value-notation": null,
197-
"color-function-notation": null
198200
}
199-
}
200201
}

0 commit comments

Comments
 (0)