aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--.gitignore5
-rw-r--r--.rubocop.yml11
-rw-r--r--.travis.yml8
-rw-r--r--Gemfile3
-rw-r--r--LICENSE21
-rw-r--r--README.md16
-rw-r--r--Rakefile9
-rw-r--r--pronto-eslint.gemspec42
-rw-r--r--spec/spec_helper.rb17
9 files changed, 132 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..2ac8271
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
1pkg/*
2*.gem
3.bundle
4.DS_Store
5Gemfile.lock
diff --git a/.rubocop.yml b/.rubocop.yml
new file mode 100644
index 0000000..48d19f3
--- /dev/null
+++ b/.rubocop.yml
@@ -0,0 +1,11 @@
1Documentation:
2 Enabled: false
3
4SignalException:
5 EnforcedStyle: only_raise
6
7MultilineOperationIndentation:
8 EnforcedStyle: indented
9
10MultilineMethodCallIndentation:
11 EnforcedStyle: indented
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..98c8e1d
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,8 @@
1sudo: required
2dist: trusty
3language: ruby
4rvm:
5- 1.9.3
6- 2.0.0
7- 2.1
8- 2.2
diff --git a/Gemfile b/Gemfile
new file mode 100644
index 0000000..fa75df1
--- /dev/null
+++ b/Gemfile
@@ -0,0 +1,3 @@
1source 'https://rubygems.org'
2
3gemspec
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..baecb15
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,21 @@
1The MIT License
2
3Copyright (c) 2016 Mindaugas Mozūras
4
5Permission is hereby granted, free of charge, to any person obtaining a copy
6of this software and associated documentation files (the "Software"), to deal
7in the Software without restriction, including without limitation the rights
8to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9copies of the Software, and to permit persons to whom the Software is
10furnished to do so, subject to the following conditions:
11
12The above copyright notice and this permission notice shall be included in
13all copies or substantial portions of the Software.
14
15THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21THE SOFTWARE.
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..e9aa8e9
--- /dev/null
+++ b/README.md
@@ -0,0 +1,16 @@
1# Pronto runner for ESLint
2
3[![Code Climate](https://codeclimate.com/github/mmozuras/pronto-eslint.png)](https://codeclimate.com/github/mmozuras/pronto-eslint)
4[![Build Status](https://travis-ci.org/mmozuras/pronto-eslint.png)](https://travis-ci.org/mmozuras/pronto-eslint)
5[![Gem Version](https://badge.fury.io/rb/pronto-eslint.png)](http://badge.fury.io/rb/pronto-eslint)
6[![Dependency Status](https://gemnasium.com/mmozuras/pronto-eslint.png)](https://gemnasium.com/mmozuras/pronto-eslint)
7
8Pronto runner for [ESlint](http://eslint.org), pluggable linting utility for JavaScript and JSX. [What is Pronto?](https://github.com/mmozuras/pronto)
9
10## Prerequisites
11
12You'll need to install one of the runtimes supported by [ExecJS](https://github.com/sstephenson/execjs#execjs).
13
14## Configuration
15
16Configuring ESLint via .eslintrc will work just fine with pronto-eslint.
diff --git a/Rakefile b/Rakefile
new file mode 100644
index 0000000..dfa86a6
--- /dev/null
+++ b/Rakefile
@@ -0,0 +1,9 @@
1#!/usr/bin/env rake
2require 'bundler'
3require 'rspec/core/rake_task'
4
5Bundler::GemHelper.install_tasks
6RSpec::Core::RakeTask.new(:spec)
7
8task(:default).clear
9task default: [:spec]
diff --git a/pronto-eslint.gemspec b/pronto-eslint.gemspec
new file mode 100644
index 0000000..7a57560
--- /dev/null
+++ b/pronto-eslint.gemspec
@@ -0,0 +1,42 @@
1# -*- encoding: utf-8 -*-
2#
3$LOAD_PATH.push File.expand_path('../lib', __FILE__)
4require 'pronto/eslint/version'
5require 'English'
6
7Gem::Specification.new do |s|
8 s.name = 'pronto-eslint'
9 s.version = Pronto::ESLintVersion::VERSION
10 s.platform = Gem::Platform::RUBY
11 s.author = 'Mindaugas Mozūras'
12 s.email = 'mindaugas.mozuras@gmail.com'
13 s.homepage = 'http://github.org/mmozuras/pronto-eslintt'
14 s.summary = <<-EOF
15 Pronto runner for ESLint, pluggable linting utility for JavaScript and JSX
16 EOF
17
18 s.licenses = ['MIT']
19 s.required_ruby_version = '>= 1.9.3'
20 s.rubygems_version = '1.8.23'
21
22 s.files = `git ls-files`.split($RS).reject do |file|
23 file =~ %r{^(?:
24 spec/.*
25 |Gemfile
26 |Rakefile
27 |\.rspec
28 |\.gitignore
29 |\.rubocop.yml
30 |\.travis.yml
31 )$}x
32 end
33 s.test_files = []
34 s.extra_rdoc_files = ['LICENSE', 'README.md']
35 s.require_paths = ['lib']
36
37 s.add_dependency('pronto', '~> 0.5.0')
38 s.add_dependency('eslintrb', '~> 2.0.0')
39 s.add_development_dependency('rake', '~> 10.4')
40 s.add_development_dependency('rspec', '~> 3.3')
41 s.add_development_dependency('rspec-its', '~> 1.2')
42end
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
new file mode 100644
index 0000000..4d1ff71
--- /dev/null
+++ b/spec/spec_helper.rb
@@ -0,0 +1,17 @@
1require 'rspec'
2require 'rspec/its'
3require 'pronto/eslint'
4
5RSpec.shared_context 'test repo' do
6 let(:git) { 'spec/fixtures/test.git/git' }
7 let(:dot_git) { 'spec/fixtures/test.git/.git' }
8
9 before { FileUtils.mv(git, dot_git) }
10 let(:repo) { Pronto::Git::Repository.new('spec/fixtures/test.git') }
11 after { FileUtils.mv(dot_git, git) }
12end
13
14RSpec.configure do |config|
15 config.expect_with(:rspec) { |c| c.syntax = :should }
16 config.mock_with(:rspec) { |c| c.syntax = :should }
17end