Skip to content
This repository was archived by the owner on Jun 11, 2022. It is now read-only.

Commit

Permalink
style: fix lint (self host fox-suite). closes #2
Browse files Browse the repository at this point in the history
  • Loading branch information
hyperupcall committed Jun 14, 2020
1 parent 5b54ea3 commit 94d5930
Show file tree
Hide file tree
Showing 165 changed files with 31,288 additions and 31,002 deletions.
1 change: 1 addition & 0 deletions .config/.cache/eslintcache

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions .config/eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules/
11 changes: 11 additions & 0 deletions .config/htmllint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// this is a non-standard htmlhint configuration file
// (meaning only .htmlhintrc is usually valid)

/**
* @param {import("fox-types/types").IFoxConfig} [fox] - `fox.config.js` configuration object
* @return {Record<string, any>}
*/
export default function(fox) {
return {
}
}
8 changes: 8 additions & 0 deletions .config/npmpackagejsonlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

/**
* @param {import("fox-types/types").IFoxConfig} [fox] - `fox.config.js` configuration object
* @return {Record<string, any>}
*/
export default function(fox) {

}
Empty file added .config/prettierignore
Empty file.
3 changes: 3 additions & 0 deletions .config/stylelintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules/
dist/
build/
5 changes: 5 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"recommendations": [
"dbaeumer.vscode-eslint"
]
}
15 changes: 14 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
{
"deno.enable": false
"deno.enable": false,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"eslint.enable": true,
"eslint.packageManager": "yarn",
"eslint.validate": [
"vue",
"html",
"javacsript"
],
"eslint.options": {
"configFile": ".config/build/eslint.config.js"
}
}
6 changes: 3 additions & 3 deletions @types/stylelint/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type stylelint from 'stylelint'
import type stylelint from 'stylelint';

// declare module "stylelint" {
// export interface LinterOptionsOverride extends stylelint.LinterOptions {
Expand All @@ -8,6 +8,6 @@ import type stylelint from 'stylelint'

// HACK: could be less ugly
export interface i extends stylelint.LinterOptions {
globbyOptions: Record<string, any>,
reportInvalidScopeDisables: boolean
globbyOptions: Record<string, any>;
reportInvalidScopeDisables: boolean;
}
5 changes: 3 additions & 2 deletions fox.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export default {
all: 'strict'
}
all: 'strict',
env: ['node'],
};
7 changes: 2 additions & 5 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
{
"packages": [
"packages/**",
"test"
],
"version": "0.1.1"
"packages": ["packages/**", "test"],
"version": "0.1.1"
}
42 changes: 42 additions & 0 deletions markdownlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
/**
* @param {import("fox-types/types").IFoxConfig} [fox] - `fox.config.js` configuration object
* @return {Record<string, any>}
*/
export default function (fox) {
return {
'default': false,
'heading-increment': 'atx',
'ul-style': {
style: 'asterisk',
},
'list-indent': true,
'ul-start-left': true,
'ul-indent': {
indent: 4,
},
'no-trailing-spaces': true,
'no-hard-tabs': true,
'no-reversed-links': true,
'no-multiple-blanks': true,
'no-missing-space-atx': true,
'no-multiple-space-atx': true,
'blanks-around-headings': true,
'heading-start-left': true,
'no-trailing-punctuation': {
punctuation: '.,;:!',
},
'no-multiple-space-blockquote': true,
'no-blanks-blockquote': true,
'ol-prefix': {
style: 'ordered',
},
'list-marker-space': true,
'blanks-around-fences': true,
'blanks-around-lists': true,
'no-bare-urls': true,
'hr-style': '---',
'no-space-in-emphasis': true,
'no-space-in-links': true,
'fenced-code-language': true,
};
}
8 changes: 3 additions & 5 deletions packages/eslint-config-fox/jest.config.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
export default {
preset: 'ts-jest',
setupFilesAfterEnv: [
"jest-extended"
],
}
preset: 'ts-jest',
setupFilesAfterEnv: ['jest-extended'],
};
114 changes: 57 additions & 57 deletions packages/eslint-config-fox/package.json
Original file line number Diff line number Diff line change
@@ -1,59 +1,59 @@
{
"name": "eslint-config-fox",
"description": "ESLint configuration for Fox Suite",
"version": "0.3.4",
"keywords": [
"eslint",
"fox",
"eslint-config",
"fox-suite"
],
"homepage": "https://github.com/eankeen/fox-suite/tree/dev/eslint-config-fox#readme",
"bugs": {
"url": "https://github.com/eankeen/fox-suite/issues"
},
"author": {
"name": "Edwin Kofler",
"url": "https://edwinkofler.com"
},
"repository": {
"type": "git",
"url": "https://github.com/eankeen/fox-suite.git"
},
"main": "build",
"license": "MIT",
"type": "commonjs",
"engines": {
"node": ">=12.17.0 >=v13.14.0 >=14.3.0"
},
"scripts": {
"start": "ts-node src",
"watch": "tsc --build --watch",
"build": "tsc --build",
"test": "jest"
},
"devDependencies": {
"eslint": "^7.2.0",
"fox-types": "workspace:^0.3.4",
"jest": "^26.0.1",
"jest-extended": "^0.11.5",
"np": "^6.2.4",
"ts-jest": "^26.1.0",
"typescript": "^3.9.5"
},
"peerDependencies": {
"eslint": "^7.2.0"
},
"dependencies": {
"babel-eslint": "^10.1.0",
"colorette": "^1.2.0",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-babel": "^5.3.0",
"eslint-plugin-import": "^2.21.2",
"eslint-plugin-prettier": "^3.1.3",
"eslint-plugin-simple-import-sort": "^5.0.3",
"lodash.mergewith": "^4.6.2",
"pnpm": "^5.1.8",
"read-pkg-up": "^7.0.1"
}
"name": "eslint-config-fox",
"description": "ESLint configuration for Fox Suite",
"version": "0.3.4",
"keywords": [
"eslint",
"fox",
"eslint-config",
"fox-suite"
],
"homepage": "https://github.com/eankeen/fox-suite/tree/dev/eslint-config-fox#readme",
"bugs": {
"url": "https://github.com/eankeen/fox-suite/issues"
},
"author": {
"name": "Edwin Kofler",
"url": "https://edwinkofler.com"
},
"repository": {
"type": "git",
"url": "https://github.com/eankeen/fox-suite.git"
},
"main": "build",
"license": "MIT",
"type": "commonjs",
"engines": {
"node": ">=12.17.0 >=v13.14.0 >=14.3.0"
},
"scripts": {
"start": "ts-node src",
"watch": "tsc --build --watch",
"build": "tsc --build",
"test": "jest"
},
"devDependencies": {
"eslint": "^7.2.0",
"fox-types": "workspace:^0.3.4",
"jest": "^26.0.1",
"jest-extended": "^0.11.5",
"np": "^6.2.4",
"ts-jest": "^26.1.0",
"typescript": "^3.9.5"
},
"peerDependencies": {
"eslint": "^7.2.0"
},
"dependencies": {
"babel-eslint": "^10.1.0",
"colorette": "^1.2.0",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-babel": "^5.3.0",
"eslint-plugin-import": "^2.21.2",
"eslint-plugin-prettier": "^3.1.3",
"eslint-plugin-simple-import-sort": "^5.0.3",
"lodash.mergewith": "^4.6.2",
"pnpm": "^5.1.8",
"read-pkg-up": "^7.0.1"
}
}
Loading

0 comments on commit 94d5930

Please sign in to comment.