This repository has been archived by the owner on Aug 7, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for ignore files, local remark-lint (#85)
* Update `remark` to 5.1.0; * Update `remark-lint` to 4.1.0; * Update `eslint`, `eslint-config-airbnb-base` * Use `unified-engine-atom` to deal with processing, this adds support for `.remarkignore` files, local remark-lint configuration files. Closes GH-71 - `remark-lint` specified in `.remarkrc` or `package.json` files now precedes over the packaged `remark-lint`. Closes GH-93 - Update `remark`; Closes GH-92 - Update `remark-lint`; Closes GH-76, closes GH-83 - Using `unified-engine`, which comes with pretty JSON errors.
- Loading branch information
Showing
7 changed files
with
94 additions
and
165 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,12 +1,24 @@ | ||
git: | ||
depth: 10 | ||
language: node_js | ||
node_js: | ||
- '4.0' | ||
- '6.0' | ||
os: | ||
- linux | ||
- osx | ||
script: curl -s https://raw.githubusercontent.com/Arcanemagus/ci/atomlinter/build-package.sh | ||
| sh | ||
&& npm run lint | ||
addons: | ||
apt: | ||
packages: | ||
- build-essential | ||
- git | ||
- libgnome-keyring-dev | ||
- fakeroot | ||
branches: | ||
only: | ||
- master | ||
notifications: | ||
email: | ||
on_success: never | ||
on_failure: change | ||
os: osx | ||
|
||
script: 'curl -s https://raw.githubusercontent.com/atom/ci/master/build-package.sh | sh && npm run lint' |
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,19 +1,11 @@ | ||
version: "{build}" | ||
os: Windows Server 2012 R2 | ||
branches: | ||
only: | ||
- master | ||
platform: x64 | ||
environment: | ||
APM_TEST_PACKAGES: | ||
matrix: | ||
- ATOM_CHANNEL: stable | ||
- ATOM_CHANNEL: beta | ||
build_script: | ||
- ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/Arcanemagus/ci/atomlinter/build-package.ps1')) | ||
test: off | ||
deploy: off | ||
|
||
install: | ||
- appveyor DownloadFile https://atom.io/download/windows -FileName AtomSetup.exe | ||
- AtomSetup.exe /silent | ||
|
||
build_script: | ||
- cd %APPVEYOR_BUILD_FOLDER% | ||
- SET PATH=%LOCALAPPDATA%\atom\bin;%PATH% | ||
- apm clean | ||
- apm install | ||
- npm run lint | ||
- apm test |
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,38 @@ | ||
'use babel'; | ||
/** | ||
* @author Titus Wormer | ||
* @copyright 2016 Titus Wormer | ||
* @license MIT | ||
* @module atom:linter-markdown:config | ||
* @fileoverview Configuration loaded into the engine. | ||
*/ | ||
|
||
const path = require('path'); | ||
|
||
const local = require.resolve('remark-lint'); | ||
|
||
function configure(config) { | ||
const current = config.plugins; | ||
const next = {}; | ||
let found = false; | ||
|
||
Object.keys(current).forEach(key => { | ||
/* Turn off plug-ins. */ | ||
next[key] = false; | ||
|
||
/* Keep remark-lint */ | ||
if (path.basename(key) === 'remark-lint') { | ||
next[key] = current[key]; | ||
found = true; | ||
} | ||
}); | ||
|
||
/* Set local `remark-lint`. */ | ||
if (!found) { | ||
next[local] = null; | ||
} | ||
|
||
return { plugins: next }; | ||
} | ||
|
||
module.exports = configure; |
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