-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* GH-29: GH-29: Sanitised root path to fix gitignore parsing. GH-29: Reverted improper use of path.resolve. GH-29: Use path.resolve instead of manually concatenating path. GH-29: Tweaked gitignore parsing. GH-29: Improved positivity check. GH-29: Added (JS)docs for new includes/excludes merging. GH-29: Improved code coverage of stylelint tests to avoid breaking CI builds. GH-29: Updated .gitignore tests to work with recent changes. GH-29: Made sources use 'nomerge' and improved affected tests. GH-29: Implement alternate merge strategy for includes/excludes. GH-31: Add tests for lintspaces.newlines and additional default excludes.
- Loading branch information
Showing
26 changed files
with
416 additions
and
97 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
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,28 +1,28 @@ | ||
{ | ||
"rootPath": "@expand:fluid.module.resolvePath(%fluid-lint-all/tests/fixtures)", | ||
"sources": { | ||
"css": ["./css/**/*.css"], | ||
"js": ["./js/**/*.js"], | ||
"json": ["./json/**/*.json"], | ||
"json5": ["./json5/**/*.json5"], | ||
"md": ["./md/**/*.md"], | ||
"scss": ["./scss/**/*.scss"] | ||
"css": [ | ||
"./css/**/*.css" | ||
], | ||
"js": [ | ||
"./js/**/*.js" | ||
], | ||
"json": [ | ||
"./json/**/*.json" | ||
], | ||
"json5": [ | ||
"./json5/**/*.json5" | ||
], | ||
"md": [ | ||
"./md/**/*.md" | ||
], | ||
"scss": [ | ||
"./scss/**/*.scss" | ||
] | ||
}, | ||
"lintspaces": { | ||
"newlines": { | ||
"enabled": true, | ||
"includes": [ | ||
"./css/*", | ||
"./images/*", | ||
"./js/*", | ||
"./json/*", | ||
"./json5/*", | ||
"./md/*", | ||
"./node_modules/*", | ||
"./other/*", | ||
"./scss/*", | ||
"./*" | ||
] | ||
"includes": ["./md/**/*.md"] | ||
} | ||
} | ||
} |
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,42 @@ | ||
{ | ||
"eslint": { | ||
"js": { | ||
"enabled": false | ||
}, | ||
"json": { | ||
"enabled": false | ||
}, | ||
"md": { | ||
"enabled": false | ||
} | ||
}, | ||
"json5lint": { | ||
"enabled": false | ||
}, | ||
"jsonlint": { | ||
"enabled": false | ||
}, | ||
"lintspaces": { | ||
"jsonindentation": { | ||
"enabled": false | ||
}, | ||
"newlines": { | ||
"enabled": false | ||
} | ||
}, | ||
"markdownlint": { | ||
"enabled": false | ||
}, | ||
"mdjsonlint": { | ||
"enabled": false | ||
}, | ||
"stylelint": { | ||
"options": { | ||
"config": { | ||
"rules": { | ||
"string-no-newline": "bad value" | ||
} | ||
} | ||
} | ||
} | ||
} |
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,39 @@ | ||
{ | ||
"sources": { | ||
"json5": ["./src/**/*.json5", "./tests/**/*.json5", "./*.json5", "./tests/**/*.with.extensions"] | ||
}, | ||
"eslint": { | ||
"js": { | ||
"excludes": "@expand:fluid.generate(64,'')" | ||
}, | ||
"json": { | ||
"excludes": "@expand:fluid.generate(64,'')" | ||
}, | ||
"md": { | ||
"excludes": "@expand:fluid.generate(64,'')" | ||
} | ||
}, | ||
"json5lint": { | ||
"excludes": "@expand:fluid.generate(64,'')" | ||
}, | ||
"jsonlint": { | ||
"excludes": "@expand:fluid.generate(64,'')" | ||
}, | ||
"lintspaces": { | ||
"jsonindentation": { | ||
"excludes": "@expand:fluid.generate(64,'')" | ||
}, | ||
"newlines": { | ||
"excludes": "@expand:fluid.generate(64,'')" | ||
} | ||
}, | ||
"markdownlint": { | ||
"excludes": "@expand:fluid.generate(64,'')" | ||
}, | ||
"mdjsonlint": { | ||
"excludes": "@expand:fluid.generate(64,'')" | ||
}, | ||
"stylelint": { | ||
"excludes": "@expand:fluid.generate(64,'')" | ||
} | ||
} |
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
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.