Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support linting dot files #947

Merged
merged 2 commits into from Dec 4, 2022
Merged

Conversation

kellyselden
Copy link
Contributor

path.extname('.lint-todo') === '', so we have to be a little smarter than node to capture these files.

With this change, I can now use https://github.com/kellyselden/textlint-rule-eol-last to lint .lint-todo files with

{
  plugins: {
    '@textlint/text': {
      extensions: ['.lint-todo'],
    },
  },
  rules: {
    'eol-last': true,
  },
};

Kelly Selden added 2 commits December 3, 2022 14:24
`path.extname('.lint-todo') === ''`, so we have to be a little smarter than node to capture these files.
`path.extname('.lint-todo') === ''`, so we have to be a little smarter than node to capture these files.
@azu azu added Type: Feature New Feature Type: Bug Bug or Bug fixes and removed Type: Feature New Feature labels Dec 4, 2022
@azu azu merged commit 8811922 into textlint:master Dec 4, 2022
@azu
Copy link
Member

azu commented Dec 4, 2022

Thanks!

@azu
Copy link
Member

azu commented Dec 4, 2022

@kellyselden kellyselden deleted the lint_dot_files branch December 5, 2022 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Bug or Bug fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants