-
Notifications
You must be signed in to change notification settings - Fork 151
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Normalize linting and formatting with new preset
- Loading branch information
1 parent
2f37d3e
commit 717db50
Showing
12 changed files
with
93 additions
and
145 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
/test/fixtures | ||
/test/fixtures | ||
dist/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,7 @@ | ||
{ | ||
"root": true, | ||
"parser": "@typescript-eslint/parser", | ||
"extends": ["prettier", "prettier/standard"], | ||
"plugins": ["@typescript-eslint"], | ||
"extends": ["kaisermann/typescript"], | ||
"env": { | ||
"node": true, | ||
"jest": true | ||
}, | ||
"parserOptions": { | ||
"ecmaVersion": 6, | ||
"sourceType": "module" | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
import path from 'path'; | ||
|
||
import stylus from 'stylus'; | ||
|
||
import { getIncludePaths } from '../utils'; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
import postcss from 'postcss'; | ||
import { Options as SassOptions } from 'sass'; | ||
import { Options as PugOptions } from 'pug'; | ||
import { CompilerOptions } from 'typescript'; | ||
|
||
export interface Coffeescript { | ||
inlineMap?: boolean; | ||
filename?: string; | ||
bare?: boolean; | ||
header?: boolean; | ||
transpile?: any; | ||
} | ||
|
||
export interface Postcss extends postcss.ProcessOptions { | ||
plugins: postcss.AcceptedPlugin[]; | ||
configFilePath?: string; | ||
} | ||
|
||
export type Pug = PugOptions; | ||
export type Sass = Omit<SassOptions, 'file'>; | ||
// from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/less/index.d.ts#L80 | ||
export interface Less { | ||
paths?: string[]; | ||
plugins?: any[]; | ||
strictImports?: boolean; | ||
maxLineLen?: number; | ||
dumpLineNumbers?: 'comment' | string; | ||
silent?: boolean; | ||
strictUnits?: boolean; | ||
globalVars?: Record<string, string>; | ||
modifyVars?: Record<string, string>; | ||
} | ||
|
||
// from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/stylus/index.d.ts#L1410 | ||
export interface Stylus { | ||
globals?: Record<string, any>; | ||
functions?: Record<string, any>; | ||
imports?: string[]; | ||
paths?: string[]; | ||
// custom | ||
sourcemap?: boolean; | ||
} | ||
|
||
export interface Typescript { | ||
compilerOptions: CompilerOptions & { transpileOnly?: boolean }; | ||
tsconfigFile?: string | boolean; | ||
tsconfigDirectory?: string | boolean; | ||
transpileOnly?: boolean; | ||
reportDiagnostics?: boolean; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.